My Vercel project seems to be working fine until the page is refreshed while the user is on an internal link (such as /profile), at which point it returns a 404 error.
Current Behavior
Navigating via internal links works correctly.
Refreshing the page on any route other than the root results in a 404 error.
Are there any fixes to this or is it just user error?
Update to this - found the fix! All that had to be done was to create a vercel.json file and put the following code below in it to work! So if anyone runs into a similar issue, this will probably help