From: studyhill Date: Thu, 18 Jun 2026 14:01:13 +0000 (+0800) Subject: vite dev server 绑 0.0.0.0:2341,支持公网直接访问 X-Git-Url: http://acesimba.cloud/gitweb/?a=commitdiff_plain;h=80c1440f446ee2e348b77fbd3db75ac46a670f43;p=study-mountion.git vite dev server 绑 0.0.0.0:2341,支持公网直接访问 --- diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 3318422..449ba51 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -5,6 +5,7 @@ import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], server: { + host: true, // 绑 0.0.0.0,允许公网访问 port: 2341, strictPort: true, proxy: {