File size: 1,264 Bytes
3d00a0a 00af2f2 3d00a0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # Render deploy — single service (gateway serves frontend + /api + /ws, all same-origin).
# Secrets are set in the Render dashboard, never committed.
services:
- type: web
name: astromesh
runtime: node
plan: free
# Installs frontend deps (incl. satellite.js used by the gateway) and builds the Vue app.
buildCommand: cd frontend && npm install && npm run build
startCommand: node dev/mock-gateway.js
healthCheckPath: /health
autoDeploy: true
envVars:
- key: GROQ_MODEL
value: openai/gpt-oss-120b
# Frontend (Vite) build-time tokens — inlined into the bundle at `npm run build`.
# These are client-side by nature (visible in F12); scope them in their dashboards.
- key: VITE_CESIUM_TOKEN
sync: false
- key: VITE_OWM_KEY
sync: false
- key: VITE_GMAPS_KEY
sync: false
# Set these in the dashboard (Environment tab) — do NOT hardcode:
- key: SPACETRACK_IDENTITY
sync: false
- key: SPACETRACK_PASSWORD
sync: false
- key: GROQ_API_KEY
sync: false
# After first deploy, set this to your live URL to lock CORS, e.g.
# https://astromesh.onrender.com
- key: ALLOWED_ORIGINS
sync: false
|