From 9e48d78e691ab7fff023d1e41d1e1dc83df2788d Mon Sep 17 00:00:00 2001 From: zodern Date: Mon, 7 Oct 2024 09:57:05 -0500 Subject: [PATCH] Fix handling shared configs without nginxConfig --- src/plugins/proxy/command-handlers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/proxy/command-handlers.js b/src/plugins/proxy/command-handlers.js index 316c380f..f3b4437e 100644 --- a/src/plugins/proxy/command-handlers.js +++ b/src/plugins/proxy/command-handlers.js @@ -215,7 +215,10 @@ export function reconfigShared(api) { } }); - const sharedNginxConfig = api.resolvePath(api.getBasePath(), shared.nginxConfig) || api.resolvePath(__dirname, 'assets/proxy.conf'); + const sharedNginxConfig = shared.nginxConfig ? + api.resolvePath(api.getBasePath(), shared.nginxConfig) : + api.resolvePath(__dirname, 'assets/proxy.conf'); + list.copy('Sending nginx config', { src: sharedNginxConfig, dest: `/opt/${PROXY_CONTAINER_NAME}/config/nginx-default.conf`