浏览代码

feat(examples/api): use strict port (#5013)

Amr Bashir 3 年之前
父节点
当前提交
2b846f413c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/api/vite.config.js

+ 2 - 0
examples/api/vite.config.js

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