瀏覽代碼

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