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

Ensure all excluded files in _routes.json start with / #6952

Merged
merged 2 commits into from Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-rocks-return.md
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-cloudflare': patch
---

Ensure all excluded paths in `_routes.json` start with /
3 changes: 2 additions & 1 deletion packages/adapter-cloudflare/index.js
Expand Up @@ -87,7 +87,8 @@ function get_routes_json(app_dir, assets) {
// We do want to show an example of a _routes.json that
// excludes more than just /_app/immutable/*, and favicons
// are a reasonable choice
.filter((filePath) => filePath.includes('favicon'))
.filter((file) => file.startsWith('favicon'))
.map((file) => `/${file}`)
]
};
}
Expand Down