- Use a Node.js host that supports Next.js server routes. Set the build command to
npm ci && npm run buildand the start command tonpm start. - Set
AUTH_URLto the public HTTPS origin. Generate a uniqueAUTH_SECRETwithopenssl rand -base64 32. Keep all credentials in the host's secret settings. - Set
REDIS_URLto a dedicated Redis 6.2 or later instance. Use TLS for remote connections, turn on persistence and backups, and set the eviction policy tonoeviction. - Configure Google OAuth. Register the production origin with
/api/auth/callback/googleappended as an authorized redirect URI. SetAUTH_GOOGLE_IDandAUTH_GOOGLE_SECRET. - To enable email sign-in, set
AUTH_RESEND_KEYandAUTH_EMAIL_FROM. Verify the sender domain in Resend. - Set
OPENAI_API_KEYonly if the deployment should offer AI checks. - Configure the proxy to accept JSON backup uploads up to 16 MB. Set request and rate limits at the proxy for public traffic. Keep workspace and authentication responses out of shared caches.
Use Redis as a durable data store and verify that you can restore its backups. Keep the database on a private network where the host supports it. Redis persistence
For Replit, use the Autoscale deployment in .replit and set the same secrets in the deployment. A host that sets a lower request size limit will also limit backup imports. Next.js deployment
Before replacing the old release, download each project backup from the original browser and site address. After deployment, sign in and restore each file in Data and examples.
- Check that
/api/healthreturns HTTP 200 and{"status":"ready"}. - Sign in with Google. If email sign-in is enabled, request and open a test link. Verify that the link works once and that signing out closes workspace access.
- Open the website example. Check a request, confirm the cited exclusion, and record an out-of-scope decision. Prepare and share a fictional change request, then record a written approval.
- Sign in from a separate browser and verify the change log and evidence export. Check that a different account cannot access the project.
- Download and restore a backup. Confirm that the copied project keeps its exact quotes and review history. Try a PDF and verify its page references.
- Install the app in a supported browser. Disconnect and open it. Verify that it shows a reconnect screen. Reconnect and open the workspace.
Keep a Redis backup and the previous server build before deploying. If a release fails, redeploy the last verified server build with the same Redis connection and authentication secret. Restore the database from a backup only if the data needs recovery.