React router.dom with vite react

Hi guys!

I’m very problems with the react.router.dom library. I using the npm and my configuration is correct. My app is vite react.

for example for: Auth Frontend

The result is:

Unexpected Application Error!

404 Not Found

Please, can help me?


Hi there,

Are you running the service as a Web Service or a Static Site? For basic React apps we typically recommend a Static Site, per our doc example:

If you wish to use a library that cedes routing to your application you will need to run it as a Web Service so your routes get properly processed on the backend.

Hope that helps!


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)