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>
This commit is contained in:
Adit Sachde 2023-09-27 18:34:29 -04:00 committed by GitHub
parent c0708c921c
commit f5c617e3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---
Include generated files starting with a dot in \_routes.json

View file

@ -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)