This workspace contains a specialized full-stack implementation running React with Vite in the frontend and Node/Express on port 3000 in the backend.
-
Development Runtime:
- The development server must run on host
0.0.0.0and port3000. - Dev entrypoint:
tsx server.tsstarts Express, registering the Vite app in middleware mode.
- The development server must run on host
-
Production Bundle:
- Compiles the frontend assets to
dist/viavite build. - Bundles the backend code into a single executable CJS file
dist/server.cjsusingesbuildwith external dependencies mapped safely. - Starts utilizing Node natively:
node dist/server.cjsin Cloud Run tasks.
- Compiles the frontend assets to
-
Database Rules:
- Changes to the Firestore schema require modifying
/firebase-blueprint.json(IR) followed by updating/firestore.rulesand invoking the build tools.
- Changes to the Firestore schema require modifying
GEMINI_API_KEY: Server-side only API key for Google Gen AI.APP_URL: Hosted URL of the workspace, dynamically updated.