M8: portal-shell unified frontend shell (Modular Monolith + micro-kernel). - Apollo Client -> apollo-router (port 4010, RSC prefetch) - 5 layouts: classic/focus/split/triple/canvas - Registry + PluginLoader (dynamic import ssr:false) - 3-layer props merge, Zustand PluginStore - 4 widgets: grades/notification-bell/user-menu/class-selector - config-service: new pluginConfig GraphQL resolver - apollo-router: CORS + header propagation for portal-shell - docker-compose.yml: portal-shell service block
20 lines
729 B
Plaintext
20 lines
729 B
Plaintext
# portal-shell 环境变量模板(v2.1 M8)
|
||
#
|
||
# 复制为 .env.local 后按实际环境填写。
|
||
# 服务端变量不加 NEXT_PUBLIC_ 前缀;前端变量必须加。
|
||
|
||
# Apollo Router(GraphQL 联邦入口,M8 验收点)
|
||
# 前端 Apollo Client 直连此地址
|
||
NEXT_PUBLIC_APOLLO_ROUTER_URL=http://localhost:3000/graphql
|
||
# 服务端 RSC 预取用(容器内走内部网络)
|
||
APOLLO_ROUTER_URL=http://localhost:3000/graphql
|
||
|
||
# API Gateway(JWT 校验 + 注入 x-user-id / x-user-role)
|
||
NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:8080
|
||
|
||
# Realtime Gateway(SSE 推送)
|
||
NEXT_PUBLIC_REALTIME_GATEWAY_URL=http://localhost:8081
|
||
|
||
# 开发模式(未登录时使用 dev-user / teacher 兜底)
|
||
NEXT_PUBLIC_DEV_MODE=true
|