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

chore(vercel): 404 page not displayed in production #5

Merged
merged 1 commit into from
Sep 25, 2022

Conversation

lex-unix
Copy link
Contributor

@lex-unix lex-unix commented Sep 25, 2022

Hi!

I have noticed that 404 page is not displayed in production when deployed to Vercel. For example, https://uses.craftz.dog/invalid-slug just shows the index page.

Currently, they have some issues and according to Astro docs the fix is to add the following lines to vercel.json:

{
  "cleanUrls": true,
}

You can refer to the docs here.

Have a nice one and hope this helps!

@craftzdog craftzdog merged commit 5353bee into craftzdog:main Sep 25, 2022
@craftzdog
Copy link
Owner

Wow thanks!

@lex-unix lex-unix deleted the 404-page branch September 27, 2022 22:38
@lex-unix lex-unix restored the 404-page branch September 27, 2022 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants