Next.js Discord

Discord Forum

Custom link

Unanswered
Challangerson posted this in #help-forum
Open in Discord
hi if i have folder named shop if i added page.jsx - link : "localhost:3000/shop" but if i create product.jsx file not folder - link "localhost:3000/shop/product" - NOT WORKING
should i create next folder named product then add file product.jsx?

1 Reply

Nile Crocodile
You must create folder named "product" and then file "page.jsx" inside of it. That's how app router works