diff options
author | 2023-09-27 18:34:29 -0400 | |
---|---|---|
committer | 2023-09-27 18:34:29 -0400 | |
commit | f5c617e3a3ed8f010ff28f0cfe0f322ad54ed6e0 (patch) | |
tree | da859afa480cad3be37407c1330eea2c65df823f | |
parent | c0708c921c2f62f82bcd34caa3246cab6fc44d5c (diff) | |
download | astro-f5c617e3a3ed8f010ff28f0cfe0f322ad54ed6e0.tar.gz astro-f5c617e3a3ed8f010ff28f0cfe0f322ad54ed6e0.tar.zst astro-f5c617e3a3ed8f010ff28f0cfe0f322ad54ed6e0.zip |
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 <my.burning@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
-rw-r--r-- | .changeset/clean-planets-retire.md | 5 | ||||
-rw-r--r-- | packages/integrations/cloudflare/src/index.ts | 1 |
2 files changed, 6 insertions, 0 deletions
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) |