From 25a3c06cb376bcacbf9fd8c22e55e4138ca10828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Nov=C3=A1k?= Date: Thu, 28 Nov 2024 15:41:49 +0100 Subject: [PATCH] chore: Make vite host configurable by `.env` file (#2730) --- webapp/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts index ebbd50e0e7..175da80b76 100644 --- a/webapp/vite.config.ts +++ b/webapp/vite.config.ts @@ -35,6 +35,7 @@ export default defineConfig(({ mode }) => { server: { // this ensures that the browser opens upon server start open: true, + host: process.env.VITE_HOST || undefined, // this sets a default port to 3000 port: Number(process.env.VITE_PORT) || 3000, },