完善架构,修改很多地方
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
# 请求协议 http or https(建议线上配置证书后,使用https)
|
||||
VITE_PREFIX=http://
|
||||
|
||||
# Nacos 配置中心 ip:端口 | 域名
|
||||
VITE_NACOS_ADDRESS=cluster.nacos.com
|
||||
#VITE_NACOS_ADDRESS=192.168.139.84:8848
|
||||
#
|
||||
# Nacos 集群的地址
|
||||
# 注意:
|
||||
# 1: 内网微前端模块,直接填内网Nacos IP:端口 就行
|
||||
# 2: main-app位于公网,填 网关的公网地址
|
||||
#
|
||||
|
||||
# 网关地址
|
||||
VITE_NACOS_ADDRESS=nacos.ddd.com:80
|
||||
# VITE_NACOS_ADDRESS=192.168.139.84:8848
|
||||
|
||||
# traefik 网关的地址
|
||||
VITE_TRAEFIK_ADDRESS=192.168.31.101
|
||||
|
||||
# 注册到 Nacos 的服务名称(微前端模块名称)
|
||||
VITE_SERVER_NAME=main-app
|
||||
|
||||
@@ -13,20 +13,20 @@
|
||||
"dependencies": {
|
||||
"pinia": "^3.0.3",
|
||||
"vite-plugin-nacos": "link:../vite-plugin-nacos",
|
||||
"vue": "^3.5.21",
|
||||
"vue": "^3.5.22",
|
||||
"vue-facing-decorator": "^4.0.1",
|
||||
"vue-router": "^4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@element-plus/icons-vue": "^2.3.2",
|
||||
"@originjs/vite-plugin-federation": "^1.4.1",
|
||||
"@types/node": "^24.5.2",
|
||||
"@types/node": "^24.6.1",
|
||||
"@vue3-oop/plugin-vue-jsx": "^1.5.1",
|
||||
"element-plus": "^2.11.3",
|
||||
"element-plus": "^2.11.4",
|
||||
"rollup-plugin-visualizer": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "~5.8.3",
|
||||
"vite": "^7.1.6",
|
||||
"typescript": "~5.9.3",
|
||||
"vite": "^7.1.7",
|
||||
"vite-federation": "^3.4.4",
|
||||
"vite-plugin-vue-devtools": "^8.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import path from 'path'
|
||||
|
||||
import { defineConfig, loadEnv, ConfigEnv, mergeConfig } from 'vite'
|
||||
import vueJsx from '@vue3-oop/plugin-vue-jsx'
|
||||
import federation from '@originjs/vite-plugin-federation';
|
||||
import federation from 'vite-federation';
|
||||
import { reg, init } from 'vite-plugin-nacos';
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user