- deploy.sh: one-command deploy script (--init for first time, bare for updates) - docker-compose.prod.yml: production stack with nginx, multi-worker uvicorn, no volume mounts for code - nginx/nginx.conf: reverse proxy with rate limiting, WebSocket support, static asset caching - Fix login to use real backend API instead of mock localStorage tokens - Add auth guard to AppShell (prevents flash-of-content on unauthenticated routes) - JWT claims decoded client-side for user info (no extra /me call needed) - Switch logo from missing .jpeg to .svg - Frontend API URL defaults to same-origin (works behind nginx without CORS) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
249 B
Text
7 lines
249 B
Text
# For local development (pointing to Docker backend)
|
|
NEXT_PUBLIC_API_URL=http://localhost:8040
|
|
NEXT_PUBLIC_WS_URL=ws://localhost:8040
|
|
|
|
# For production (behind nginx, same origin — leave empty or omit)
|
|
# NEXT_PUBLIC_API_URL=
|
|
# NEXT_PUBLIC_WS_URL=
|