Next.js Discord

Discord Forum

How do I set up pages?

Answered
Kawakawa posted this in #help-forum
Open in Discord
KawakawaOP
Screenshot attached. I'm trying to setup my pages directory to use the routing but I am consistently getting a 404 not found. What am I doing wrong? Side note: index.tsx used to be called page.tsx, upon renaming it my main page no longer works as well. Documentation simply says to have a pages directory where index.tsx will point to the root parent directory.
Answered by Kawakawa
Ah, there are two routing methods available, App Routing and Pages.
View full answer

2 Replies

KawakawaOP
Ah, there are two routing methods available, App Routing and Pages.
Answer
Scaly-naped Pigeon