Next.js Discord

Discord Forum

linking to about.tsx

Unanswered
Oak apple gall wasp posted this in #help-forum
Open in Discord
Oak apple gall waspOP
im currently trying to link to a page using a navbar however when it links to localhost:300/about about is not getting rendered and im getting 404 (im pretty new so please dont be harsh)

10 Replies

Orinoco Crocodile
Couple things
Instead of about.tsx, it should be called page.tsx
Then for the metadata
You should read through the NextJS documentation
Many of the things you're doing (eg. metadata, importing fonts )
Are stuff that NextJS has out of the box support for
Beauty of NextJS is that it simplifies and optimizes everything for you!
sorry didn't see the responses below, you had a ghost ping from me sorry about that