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

Fixes custom 404 pages in astro dev #3331

Merged
merged 4 commits into from
May 10, 2022
Merged

Fixes custom 404 pages in astro dev #3331

merged 4 commits into from
May 10, 2022

Conversation

tony-sull
Copy link
Contributor

Closes #2661

Changes

Updates the dev server to fix a bug when finding the custom 404 route

Testing

Added a test suite for custom 404 pages in dev

Docs

None, bug fix only

@changeset-bot
Copy link

changeset-bot bot commented May 10, 2022

🦋 Changeset detected

Latest commit: a3122e3

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

This PR includes changesets to release 1 package
Name Type
astro Patch

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 pkg: astro Related to the core `astro` package (scope) test labels May 10, 2022
Copy link
Member

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

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

approve with small comment to move the util to import from our shared utils folder

@tony-sull tony-sull merged commit e22f736 into main May 10, 2022
@tony-sull tony-sull deleted the fix/custom-404 branch May 10, 2022 21:05
@github-actions github-actions bot mentioned this pull request May 10, 2022
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* Fixing pathname matching for custom 404 pages

* fixes custom 404 routes in dev

* refactor: removing node path dependency

* refactor: using core's path utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 BUG: custom 404 page doesn't render
2 participants