introduce VITE_HOST env var and pass it to the node watcher vite --host

This commit is contained in:
summersamara
2023-11-23 15:33:31 +01:00
parent 970597876b
commit bfb7e3ca40
4 changed files with 7 additions and 4 deletions

View File

@@ -83,9 +83,6 @@ export default defineConfig(({ command }) => {
return {
plugins,
build,
server: {
host: isDev ? "0.0.0.0" : "localhost",
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),