From f5c617e3a3ed8f010ff28f0cfe0f322ad54ed6e0 Mon Sep 17 00:00:00 2001 From: Adit Sachde <23707194+aditsachde@users.noreply.github.com> Date: Wed, 27 Sep 2023 18:34:29 -0400 Subject: [PATCH] Match the .well-known directory when generating routes.json (#7776) * Match the .well-known directory when generating routes.json * add changeset * Update .changeset/clean-planets-retire.md --------- Co-authored-by: Emanuele Stoppa Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --- .changeset/clean-planets-retire.md | 5 +++++ packages/integrations/cloudflare/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/clean-planets-retire.md 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)