-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix: 404 and 500 route matching #12182
fix: 404 and 500 route matching #12182
Conversation
🦋 Changeset detectedLatest commit: d7a83a8 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 |
@braden-w can you look at the tests? They are failing |
The issue is that you imported I suggest moving those functions inside |
@braden-w Are you able to implement @ematipico's suggestion? |
CodSpeed Performance ReportMerging #12182 will not alter performanceComparing Summary
|
Changes
Standardize 404 and 500 route matching via
isRoute404
andisRoute500
functions.Closes #11595
I'm unsure where are the best places to put the
isRoute404
andisRoute500
functions, so I put them inpackages/astro/src/core/util.ts
for now with other util filesThey could be moved!
They are used in
packages/astro/src/i18n/index.ts
andpackages/astro/src/vite-plugin-astro-server/route.ts
Testing
No tests were added as no new behavior was added. Ran
pnpm test
on theastro
package viapnpm --filter astro run test
.Docs
n/a, this is a fix in behavior that addresses #11595