Add WEBPACK_DEV_SERVER to frontend procs in sg.config.yaml (#19923)

Fix `sg start` throwing a 500 error because the paths to the assets in `app.html` were wrong.
This commit is contained in:
Thorsten Ball 2021-04-12 14:14:41 +02:00 committed by GitHub
parent 32f10a208b
commit f412e00905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ commands:
env:
CONFIGURATION_MODE: server
USE_ENHANCED_LANGUAGE_DETECTION: false
# frontend processes need this to be so that the paths to the assets are rendered correctly
WEBPACK_DEV_SERVER: 1
watch:
- internal
- cmd/frontend
@ -58,6 +60,8 @@ commands:
ENTERPRISE: 1
SITE_CONFIG_FILE: '../dev-private/enterprise/dev/site-config.json'
EXTSVC_CONFIG_FILE: '../dev-private/enterprise/dev/external-services-config.json'
# frontend processes need this to be so that the paths to the assets are rendered correctly
WEBPACK_DEV_SERVER: 1
watch:
- internal
- enterprise/internal