Vite: On Live Server, Fix React Router Page 404 on Refresh

maxralph1
TRIALOP

2 years ago

On localhost, my React app works just fine using BrowserRouter.

But as I try same app on a Live Server, I get an error page on Refresh.
Please, how can I fix this?

In anticipation, thanks for your help.

1 Replies

maxralph1
TRIALOP

2 years ago

N/A


2 years ago

copy the nixpacks.toml and Caddyfile from this repo into yours.

if applicable, remove any custom build or start commands you may have set in the service settings.


kingsley-anokam
PRO

20 days ago

Copy from what repo?


Loading...