Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display correct missing route in 404 page (#2083)
## What's the purpose of this pull request? display the correct missing URL when hitting a 404 page #2064 ## How it works? use `asPath` which Next provides as the alias for that particular 404 response ## How to test it? 1. visit path which doesn't exist 2. see that the URL is displayed in the body of the page ### Starters Deploy Preview <!--- Add a link to a deploy preview from `gatsby.store` AND `nextjs.store` with this branch being used. ---> <!--- Tip: You can get an installable version of this branch from the CodeSandbox generated when this PR is created. ---> ## References <!--- Spread the knowledge: is there any content you used to create this PR that is worth sharing? ---> <!--- Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process --->
- Loading branch information
1efa0ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
faststore-site – ./
faststore-site.vercel.app
faststore-site-faststore.vercel.app
faststore-site-git-main-faststore.vercel.app
faststore.dev
www.faststore.dev