From eb64b63cb1effea043c7957fc4d8b5abc9afbc69 Mon Sep 17 00:00:00 2001 From: Dmitry Ignatiev Date: Tue, 14 Nov 2023 23:17:07 +0300 Subject: [PATCH] Handle undefined BASE_PATH --- .../todo_app/todo_ui/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module2/08_docker_containerization_advanced/todo_app/todo_ui/vite.config.js b/module2/08_docker_containerization_advanced/todo_app/todo_ui/vite.config.js index 7805913..940bf9b 100644 --- a/module2/08_docker_containerization_advanced/todo_app/todo_ui/vite.config.js +++ b/module2/08_docker_containerization_advanced/todo_app/todo_ui/vite.config.js @@ -19,7 +19,7 @@ export default defineConfig({ build: { outDir: path.resolve(currentDir, 'wwwroot') }, - base: (process.env.BASE_PATH.replace(/\/$/, '') ?? '') + '/', + base: ((process.env.BASE_PATH ?? '').replace(/\/$/, '') ?? '') + '/', server: { port: 8080, hot: true,