From f412e00905651325076e36d7cbb69f126d0f4431 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Mon, 12 Apr 2021 14:14:41 +0200 Subject: [PATCH] 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. --- sg.config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sg.config.yaml b/sg.config.yaml index fc8c3187a61..e22948a7cb6 100644 --- a/sg.config.yaml +++ b/sg.config.yaml @@ -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