feat(server): add production mode with static file serving and SPA fallback.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user