From 4805ca26260fc018971736bf78bce3c5aaab8d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Sat, 5 Jun 2021 20:14:55 +0800 Subject: [PATCH] chore: vite server options adjustment --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 3b361d96..6f0c0b38 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -57,6 +57,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { ], }, server: { + // Listening on all local IPs + host: true, port: VITE_PORT, // Load proxy configuration from .env proxy: createProxy(VITE_PROXY), -- GitLab