chore(examples): move API dev server config from CLI to vite.config.js

This commit is contained in:
Lucas Nogueira
2022-12-03 10:20:04 -03:00
parent 5024f7905c
commit 626faf9ec1
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
"build": {
"distDir": "../dist",
"devPath": "http://localhost:5173",
"beforeDevCommand": "yarn dev --host",
"beforeDevCommand": "yarn dev",
"beforeBuildCommand": "yarn build"
},
"package": {

View File

@@ -18,6 +18,7 @@ export default defineConfig(async ({ command, mode }) => {
}
},
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
hmr: {