chore(config): 修改服务器端口并添加允许的主机配置
- 将开发服务器端口从3000改为3010 - 添加allowedHosts配置,允许mp.yizhezhe.com访问 - 保持host为0.0.0.0以支持外部访问
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user