Keep the existing Vercel project rooted at frontend/. Set NEXT_PUBLIC_API_URL to
https://signal-intelligence-engine.onrender.com for Production and Preview as appropriate.
The hosted fallback is the same public API origin. For an isolated preview, aim this variable
at a separate Render staging backend running the same revision and redeploy the preview.
The production frontend never needs an AI key or database credentials.
Keep the existing Docker Web Service. The build context is the repository root and the Dockerfile
is backend/Dockerfile. The container listens on Render’s PORT, or 8000 for local Docker.
The public health path is /. Start with the values in .env.example.
| Render setting | Purpose |
|---|---|
DATABASE_URL |
Hosted PostgreSQL connection with TLS. Required for AI generation and durable storage. |
SIGNAL_ENV=production |
Explicit production mode. Render is also detected automatically. |
SIGNAL_RUN_MIGRATIONS=1 |
Bootstrap additive tables and vector extension on startup. The database role must have the required privileges. Remove after the first successful migration if migrating separately. |
SIGNAL_ADMIN_TOKEN |
Optional strong random administrator credential for ingestion, manual/external IntelMap inputs, evidence management, resolutions and infrastructure diagnostics. |
SIGNAL_SCHEDULER_SECRET |
Different strong random token for the scheduler. |
SIGNAL_CORS_ORIGINS |
Comma-separated production and approved preview origins. |
LLM_PROVIDER=gemini, GEMINI_API_KEY, GEMINI_FREE_TIER_CONFIRMED=1 |
Gemini Developer API credentials for an AI Studio project with billing disabled. |
GEMINI_MODEL=gemini-3.1-flash-lite |
Gemini model override. |
GEMINI_DAILY_TOKEN_BUDGET, SIGNAL_ASSISTANT_PER_HOUR, SIGNAL_FORECAST_PER_HOUR, SIGNAL_BRIEFING_PER_HOUR, SIGNAL_AI_PER_CLIENT_HOUR |
Optional rate and budget controls. |
Start the backend before rolling out the new frontend, then test Overview and OSINT from Vercel. If the service currently has no cloud database, public legacy reads and writes can still use their existing SQLite configuration. AI operations return an explicit configuration error until PostgreSQL is available. Do not depend on Render’s ephemeral SQLite disk for production records. Export or migrate any existing SQLite data before replacing its connection.
python -m backend.intelmap.migrate from a trusted CI runner against the direct/session URL.
This adds tables, PostgreSQL history guards and row-level security. Verify the actual deployment
before enabling traffic. No migration removes enterprise records.signal_backend_url and
signal_scheduler_secret, then run data/migrations/supabase_schedule.sql. It makes signed
HTTP requests every minute to process an eligible stage and refreshes news every 15 minutes.
For Neon, configure an external scheduler to POST to the same workflow URL with
Authorization: Bearer <scheduler-secret>. Use the configured cloud scheduler, never a local loop.Render Free can spin down during inactivity and has limits. Frequent scheduler calls consume included compute and other allowances, and a paid always-on service may be appropriate for production uptime. This implementation does not enable a paid plan. Check current usage and terms in the service dashboard. Render free-instance limits · Render Docker deployments · Supabase Cron
Provider keys and the scheduler secret stay on Render or in the scheduler’s secret vault. Ordinary browsing and AI generation have no analyst token requirement. The old shared credential can be deleted from Render. Conversation history is indexed in the visitor’s browser with random conversation IDs. Treat a conversation ID as private. Former shared conversations do not appear in the public API.
For administrators, open /signals?admin=1 or /intelmap?admin=1 and enter the separately
configured administrator credential. The scheduler continues to use its own secret.
Anonymous AI POST requests have a 24 KiB cap, shared hourly limits and per-client controls.
Client identity uses the address resolved by Uvicorn. If configuring a reverse proxy, trust
forwarded addresses only from known ingress proxies.
Verify that public reads succeed without credentials, administrative writes are rejected
without a valid credential, and Gemini returns a cited answer. Allow the exact Vercel preview
origin in Render CORS when testing a protected preview. After deploying the Render revision,
verify GET /api/intelligence/countries, then deploy Vercel and refresh a country route directly.
Deploy the backend before the frontend. Keep the scheduler active for RSS and quote refreshes
and for IntelMap generation and evidence matching. Enable Gemini on Render. The optional
GEMINI_MODEL and SIGNAL_BRIEFING_PER_HOUR settings are documented
in AI providers. The update uses the existing intelligence record, archived
article, inference and IntelMap tables. No new schema migration is required on an initialized
deployment. The initial snapshot may lack index quotes and thumbnails until its next refresh.
The ticker uses Yahoo Finance’s public chart feed for the seven indices. It needs no API key and is treated as delayed. The public feed has no published quota or service-level commitment. It can rate-limit or restrict traffic from particular hosts. SIGNAL makes at most one request per index per refresh, reuses the persisted snapshot for at least ten minutes, and shows the previous successful quote as stale if a refresh fails. The scheduled workflow refreshes every 15 minutes. Check the ticker from Render after deploying, and confirm that feed access and display are permitted for your deployment. Yahoo Finance data coverage
Deploy the backend first so CORS accepts X-Research-Session and the new research routes
are available. The Render FastAPI process now drains the leased IntelMap queue while awake.
SIGNAL_WORKER_ENABLED defaults to 1 and falls back to the existing SIGNAL_LOCAL_WORKER
setting if unset. If that older setting is 0 on Render, set SIGNAL_WORKER_ENABLED=1.
The existing authenticated scheduler remains useful for waking a sleeping free instance
and refreshing feeds without an open browser. The database advisory lock coordinates
the hosted worker and optional scheduler.
Keep the working PostgreSQL connection, Gemini credentials, provider and quota settings
on Render. Existing database tables support this release without a schema migration.
After Render is live, deploy Vercel using the same existing API origin. Verify a CORS
preflight, upload an expendable document, submit an IntelMap, and follow its job through
completion. Research requests reuse the database-backed limits. SIGNAL_RESEARCH_PER_HOUR
overrides the global research ingestion rate, and the existing per-client override applies.