在vite.config.js配置中添加host参数

This commit is contained in:
zhang1106
2025-12-20 10:37:26 +08:00
parent bd37e7178d
commit 1ed02ba918
+1
View File
@@ -4,6 +4,7 @@ import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {