Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.29 KB

File metadata and controls

30 lines (20 loc) · 1.29 KB

Deployment

Deployment target

The project is compatible with deployment platforms such as Render. The repository includes a render.yaml configuration file.

Runtime considerations

For deployment, ensure the following are configured:

  • database environment variables
  • PYTHON_KEY if protected routes are used
  • GEMINI_API_KEY for prompt generation
  • RESEND_API_KEY for email sending
  • BASE_URL for environment-aware metadata
  • ALLOWED_ORIGINS with the exact frontend origin(s) that will call the API from the browser

Deployment gotcha: CORS will block browser requests unless the frontend URL is explicitly allowed. Before deploying, add the production frontend URL to ALLOWED_ORIGINS (for example, https://your-app.example.com). If you use a different subdomain or preview URL, include that exact origin as well.

Recommended deployment checklist

  1. Set all required environment variables
  2. Ensure PostgreSQL is available and reachable
  3. Install Python dependencies
  4. Run the application with Uvicorn or the deployment platform's startup command
  5. Verify core endpoints such as /health and /docs

Notes

Because the app depends on external services and a database, deployment should be treated as a full-stack environment rather than a simple static app.