Hello, I have created a React application using vite. My page navigation worked during development but after deployment it breaks. Just curious if there are any obvious “gotchas” I am missing.
Current: When the “portfolio” button is clicked, the page displays “404 not found”.
Expected: When deployed on my local machine the page navigation works as expected. And the portfolio page is displayed.
Locally hosted: Building locally with “npm run dev” and then clicking the link given. Gives the working application.
Seeing the deployed version: build with “vercel” command. You’ll be given a link in the CLI. Gives the deployed application that breaks when “portfolio” is clicked.