Env-driven dev ports + splash as the front door
vite.config.ts now reads WEB_PORT (Vite) and PORT (API) from .env via loadEnv, with the /api proxy following PORT and strictPort on — so two branch checkouts can each run `npm run dev` on their own ports. Play now always lands on the splash at the bare root instead of silently resuming an active playthrough; a Resume action continues one when present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
DATABASE_URL=postgres://osint:osint_secret@localhost:5433/osint_dev
|
||||
|
||||
# Dev ports — give each branch checkout distinct values to run them side by side.
|
||||
# PORT is the Express API; WEB_PORT is the Vite dev server, which proxies /api to PORT.
|
||||
PORT=8787
|
||||
WEB_PORT=5173
|
||||
CORS_ORIGIN=http://localhost:5173
|
||||
LEVEL_EDITING_ENABLED=true
|
||||
JWT_SECRET=osint-local-dev-secret
|
||||
MAX_DOCUMENT_BYTES=26214400
|
||||
OCR_ENABLED=true
|
||||
OCR_LANGUAGES=nor+eng
|
||||
OCR_TIMEOUT_MS=20000
|
||||
MAX_OCR_BYTES=15728640
|
||||
MAX_EXTRACTED_TEXT_CHARACTERS=200000
|
||||
|
||||
# Game asset storage (MinIO). Start it with: docker compose -f docker-compose.dev.yml up -d minio createbuckets
|
||||
S3_ENDPOINT=http://localhost:9000
|
||||
|
||||
Reference in New Issue
Block a user