chore(config): 修改服务器端口并添加允许的主机配置

- 将开发服务器端口从3000改为3010
- 添加allowedHosts配置,允许mp.yizhezhe.com访问
- 保持host为0.0.0.0以支持外部访问
This commit is contained in:
2026-01-23 11:29:47 +08:00
parent d4aa67b97d
commit ed60b8424f

View File

@@ -7,8 +7,9 @@ export default defineConfig(({ mode }) => {
return {
base: '/app_02/',
server: {
port: 3000,
port: 3010,
host: '0.0.0.0',
allowedHosts: ['mp.yizhezhe.com'],
},
plugins: [react()],
define: {