codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
30 stars 26 forks source link

[Bug Report] - refresh in vercel causes 404 (react router) #676

Closed Jared-Krajewski closed 1 month ago

Jared-Krajewski commented 1 month ago

Describe the bug:

A clear and concise description of what the bug is including error messages.

Expected behavior:

page should refresh

Actual Behavior:

page 404's.. see screenshot

Screenshots:

Screenshot 2024-09-19 at 5 58 31 PM

To Reproduce:

Steps to reproduce the behavior:

  1. Go to the vercel hosted page @ https://pass-wine.vercel.app/
  2. Log into your pod
  3. refresh the page once logged in, this will happen on any page aside from the home/landing page prior to logging in.

Possible Fix:

add rewrites to vercel.json

Additional context:

https://blog.probirsarkar.com/fixing-react-router-issues-on-vercel-how-to-handle-client-side-routing-and-404-errors-c4fb78aa1af5

leekahung commented 1 month ago

There's still a minor bug, PR #678 should fully resolve this issue.