R
Railway•8mo ago
joburg

Vite app fails to render other pages

I have a vite app I deployed to railway. The main landing renders fine, but my terms and privacy pages keep showing 404 errors. Works fine locally when I run it. Any ideas how to fix this? Project ID: f44e4195-cfa1-4ad4-8a7c-0f2322e13814 Here's my package.json { "name": "client", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, "dependencies": { "@headlessui/react": "^1.7.15", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^4.9.0", "react-parallax-tilt": "^1.7.154", "react-router-dom": "^6.22.0", "react-wrap-balancer": "^1.0.0", "serve": "^14.2.1" }, "devDependencies": { "@types/react": "^18.0.37", "@types/react-dom": "^18.0.11", "@vitejs/plugin-react-swc": "^3.0.0", "autoprefixer": "^10.4.14", "eslint": "^8.38.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.3.4", "postcss": "^8.4.24", "tailwindcss": "^3.3.2", "vite": "^4.3.9" } }
4 Replies
Percy
Percy•8mo ago
Project ID: f44e4195-cfa1-4ad4-8a7c-0f2322e13814
joburg
joburg•8mo ago
I tried this but still get the issue of the pages going to 404 when deployed: https://discord.com/channels/713503345364697088/1218211185447534682/1218217451301507082 Nvm works now. This is solved.
Brody
Brody•8mo ago
what was the issue?
maddsua
maddsua•8mo ago
SPA routing for sure oh wait why did I even opened the support tab 😀 nvm
Want results from more Discord servers?
Add your server