chore: vite server options adjustment

This commit is contained in:
无木 2021-06-05 20:14:55 +08:00
parent 437692869a
commit 4805ca2626
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
], ],
}, },
server: { server: {
// Listening on all local IPs
host: true,
port: VITE_PORT, port: VITE_PORT,
// Load proxy configuration from .env // Load proxy configuration from .env
proxy: createProxy(VITE_PROXY), proxy: createProxy(VITE_PROXY),