Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match the .well-known directory when generating routes.json #7776

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

aditsachde
Copy link
Contributor

@aditsachde aditsachde commented Jul 24, 2023

Changes

This changeset causes the glob engine to match files in directories that start with a dot when generating a _routes.json file. This is necessary for matching files in a .well-known directory.

Testing

image

When run with this change, the build process successfully generates an entry for "/.well-known/keybase.txt", which is otherwise excluded.

Docs

The docs currently state that all files in the dist/ folder will be listed in the _routes.json file, and this change brings the code in line with the expected behavior listed in the documentation.

By default, @astrojs/cloudflare will generate a _routes.json file that lists all files from your dist/ folder and redirects from the _redirects file in the exclude array.

@changeset-bot
Copy link

changeset-bot bot commented Jul 24, 2023

🦋 Changeset detected

Latest commit: 7be445a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Jul 24, 2023
@aditsachde aditsachde marked this pull request as ready for review July 24, 2023 06:02
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could add a test though. Is it possible?

@matthewp matthewp merged commit f5c617e into withastro:main Sep 27, 2023
@astrobot-houston astrobot-houston mentioned this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants