feat: standalone frontend uses production build instead of dev server#862
feat: standalone frontend uses production build instead of dev server#862deardarlingoose merged 3 commits intomainfrom
Conversation
Override web service in docker-compose.standalone.yml to build from www/Dockerfile (multi-stage: deps → build → standalone runner) instead of running pnpm dev with bind-mounted source.
a974d21 to
66c4d99
Compare
The standalone web service (node server.js) has no bind-mounted .env files and the base env_file (.env.local) has API_URL commented out. Next.js standalone server can't auto-load .env files without them on disk, so all required vars must be explicit in the compose override.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
User description
standalone version had ui problems:
no-mistaken doc:
Override web service in docker-compose.standalone.yml to build from www/Dockerfile (multi-stage: deps → build → standalone runner) instead of running pnpm dev with bind-mounted source.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
PR Type
Enhancement
Description
Production build for standalone frontend
Eliminates dev warnings and UI issues
Configures required environment variables
Improves first-run experience
Changes walkthrough 📝
docker-compose.standalone.yml
Configure production frontend for standalone modedocker-compose.standalone.yml
webservice configuration using production buildnode server.jsinstead of dev server