feat(admin-portal): 完整实现 admin-portal 管理端微前端
包含 src 全部实现、Dockerfile、配置文件等
This commit is contained in:
21
apps/admin-portal/.env.example
Normal file
21
apps/admin-portal/.env.example
Normal file
@@ -0,0 +1,21 @@
|
||||
# admin-portal 环境变量
|
||||
# GraphQL endpoint(经 api-gateway 代理到 teacher-bff admin 命名空间)
|
||||
API_GATEWAY_URL=http://localhost:8080
|
||||
|
||||
# MSW mock 开关(上游就绪后设为 disabled)
|
||||
NEXT_PUBLIC_API_MOCKING=enabled
|
||||
|
||||
# MF 开关(Shell 就绪后设为 true)
|
||||
NEXT_PUBLIC_MF_ENABLED=false
|
||||
|
||||
# Shell URL(standalone 壳用于 /api/ready 检查)
|
||||
NEXT_PUBLIC_SHELL_URL=http://localhost:4000
|
||||
|
||||
# push-gateway WebSocket(实时通知)
|
||||
NEXT_PUBLIC_WS_URL=ws://localhost:8081/ws
|
||||
|
||||
# OTel collector
|
||||
NEXT_PUBLIC_OTEL_ENDPOINT=http://localhost:4318
|
||||
|
||||
# Web Vitals 上报端点
|
||||
NEXT_PUBLIC_WEB_VITALS_ENDPOINT=/api/admin/web-vitals
|
||||
Reference in New Issue
Block a user