Frontend for Down2Jam.
npm install
npm run devThe dev server runs on http://localhost:3000.
Create a .env file if you need to choose which API to use:
VITE_PUBLIC_MODE=DEVDEV uses a local Jamcore API on http://localhost:3005.
PROD uses the production API.
npm run build
npm startThe production server serves the Vite build and injects dynamic SEO metadata for public game, music, user, and post pages.
Useful environment variables:
PORT=3000
PUBLIC_ORIGIN=https://d2jam.com
API_BASE_URL=https://d2jam.com/api/v1
VITE_GAME_BUILDS_ORIGIN=https://play.d2jam.comIn production, VITE_GAME_BUILDS_ORIGIN should be a dedicated cookieless origin that proxies /game-builds/* to Jamcore. Keep it unset for local same-origin development.
To enable the GIF picker in markdown editors, add a KLIPY browser API key:
VITE_KLIPY_API_KEY=your_klipy_api_keydocker compose up --build -d