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"
}
}
8 replies
Keep getting deploy crashed specifying connection time out on postgres after I did the migration
File "/opt/venv/lib/python3.10/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: connection to server at "viaduct.proxy.rlwy.net" (35.212.174.161), port 6885 failed: Connection timed out
I'm on Python/Django
5 replies