DEV Community

UncleZeze πŸ‡ΏπŸ‡¦
UncleZeze πŸ‡ΏπŸ‡¦

Posted on

Next.js 404 Issues

Hey devs!!

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
Enter fullscreen mode Exit fullscreen mode

Previously the article page was rendering with no issues. For some unfathomable reason, Next returns a 404 when I navigate to this page.

I am using next@9.5.3

Any help will be appreciated

Top comments (0)

Neon image

Next.js applications: Set up a Neon project in seconds

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Get started β†’

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay