lalqh
React router 404
Hi, I'm trying to get React Router to work in production, so I followed the documentation and changed my startup script as follows
"scripts": {
"start": "serve build -s -n -L -p $PORT",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
}, but when I use the page https://compactstudios.tech/ I keep getting error 404, how can I fix it?
10 replies