Browse Source

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

Amr Bashir 3 năm trước cách đây
mục cha
commit
2b846f413c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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