Skip to content

Commit

Permalink
fix: x-basic support afterCreateHook for compatibility_date (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jan 30, 2025
1 parent 0f1c685 commit eea5893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/after-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ afterCreateHook.addHook(
const COMPATIBILITY_DATE_TOML = /compatibility_date\s*=\s*"\d{4}-\d{2}-\d{2}"/
const COMPATIBILITY_DATE_JSON = /"compatibility_date"\s*:\s*"\d{4}-\d{2}-\d{2}"/
afterCreateHook.addHook(
['cloudflare-workers', 'cloudflare-pages'],
['cloudflare-workers', 'cloudflare-pages', 'x-basic'],
({ directoryPath }) => {
for (const filename of WRANGLER_FILES) {
try {
Expand Down

0 comments on commit eea5893

Please sign in to comment.