Reputation: 21
I have a Next.js blog project. I have a page that is meant to render article content from a CMS. Querying the blog post data from the CMS works fine. The issue seems to be with Next.js specifically in that Next deems my page as non-existent.
Below is a snippet pages directory structure:
pages/
-------article/
--------------[slug].tsx
Previously the article page was rendering with no issues. For some unfathomable reason, Next returns a 404 when I navigate to this page.
Upvotes: 0
Views: 495
Reputation: 301
Is that page working fine when you navigate from home page via <Link />
but will return 404 when you refresh page or visit directly to that page?
If yes, please check these:
Nextjs 404 error on reload/ refresh action
Nextjs page goes to 404 on refresh
Upvotes: 0