]> acesimba.cloud Git - study-mountion.git/commitdiff
前端开发端口改为 2341
authorstudyhill <studyhill@local>
Thu, 18 Jun 2026 13:45:34 +0000 (21:45 +0800)
committerstudyhill <studyhill@local>
Thu, 18 Jun 2026 13:45:34 +0000 (21:45 +0800)
frontend/vite.config.js

index 67a79e1ab36552596f6b03b4990af78950019349..3318422fd5b74878fdcaf7c818235f907cdce4ec 100644 (file)
@@ -5,7 +5,8 @@ import react from '@vitejs/plugin-react'
 export default defineConfig({
   plugins: [react()],
   server: {
-    port: 5173,
+    port: 2341,
+    strictPort: true,
     proxy: {
       '/api': {
         target: 'http://localhost:1061',