feat(server): add production mode with static file serving and SPA fallback.

This commit is contained in:
K
2026-05-03 22:42:52 +05:30
parent fd73b8bde5
commit e8b5beca5e
2 changed files with 39 additions and 4 deletions
+9
View File
@@ -7,6 +7,15 @@ GROQ_API_KEY=your_groq_api_key_here
# Server port (optional, defaults to 5000)
PORT=5000
# Set to "production" in production deployments.
# Enables static file serving of the built React app (web/client/dist).
# Run "npm run build" in web/client before starting the server.
NODE_ENV=production
# Allowed CORS origins (comma-separated). Defaults to localhost dev ports.
# Set this to your production domain(s) in production.
# CORS_ORIGIN=https://yourdomain.com
# Python interpreter for the retrieval daemon (optional, defaults to "python").
# Must be "python", "python3", or an absolute path to a Python 3 executable.
# Do not set this to an arbitrary binary -- the value is validated on startup.