linking to about.tsx
Unanswered
Oak apple gall wasp posted this in #help-forum
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.tsxThen 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
Check this for loading Google Fonts: https://nextjs.org/docs/pages/building-your-application/optimizing/fonts#google-fonts
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