diff --git a/.changeset/clean-planets-retire.md b/.changeset/clean-planets-retire.md new file mode 100644 index 000000000..063c83d7e --- /dev/null +++ b/.changeset/clean-planets-retire.md @@ -0,0 +1,5 @@ +--- +'@astrojs/cloudflare': patch +--- + +Include generated files starting with a dot in \_routes.json diff --git a/packages/integrations/cloudflare/src/index.ts b/packages/integrations/cloudflare/src/index.ts index 792aec196..fa2ea3198 100644 --- a/packages/integrations/cloudflare/src/index.ts +++ b/packages/integrations/cloudflare/src/index.ts @@ -538,6 +538,7 @@ export default function createIntegration(args?: Options): AstroIntegration { await glob(`${fileURLToPath(_buildConfig.client)}/**/*`, { cwd: fileURLToPath(_config.outDir), filesOnly: true, + dot: true, }) ) .filter((file: string) => cloudflareSpecialFiles.indexOf(file) < 0)