feat(student-portal): 完整实现 student-portal 微前端
包含 src 全部实现、Dockerfile、配置文件、contracts 包等
This commit is contained in:
35
apps/student-portal/.env.example
Normal file
35
apps/student-portal/.env.example
Normal file
@@ -0,0 +1,35 @@
|
||||
# ============================================================
|
||||
# student-portal 环境变量(ai14,端口 4001)
|
||||
# 对齐 ARB-002 MF 配置 + ARB-001 GraphQL + MSW mock 策略
|
||||
# ============================================================
|
||||
|
||||
# --- 运行模式 ---
|
||||
# MF 启用开关(P2=false 独立壳,P3=true 接入 Shell)
|
||||
NEXT_PUBLIC_MF_ENABLED=false
|
||||
|
||||
# MSW mock 启用开关(上游就绪前用 enabled,就绪后 disabled)
|
||||
NEXT_PUBLIC_API_MOCKING=enabled
|
||||
|
||||
# --- API 网关 ---
|
||||
NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:8080
|
||||
NEXT_PUBLIC_PUSH_GATEWAY_URL=ws://localhost:8081
|
||||
|
||||
# --- GraphQL endpoint(经 api-gateway 代理到 student-bff :3009)---
|
||||
NEXT_PUBLIC_GRAPHQL_ENDPOINT=/api/v1/student/graphql
|
||||
|
||||
# --- Shell(teacher-portal)地址(MF Remote 加载入口)---
|
||||
NEXT_PUBLIC_SHELL_URL=http://localhost:4000
|
||||
|
||||
# --- 考试作答 ---
|
||||
# 自动保存间隔(秒)
|
||||
NEXT_PUBLIC_EXAM_AUTOSAVE_INTERVAL=30
|
||||
# 服务器时间同步间隔(秒)
|
||||
NEXT_PUBLIC_EXAM_TIME_SYNC_INTERVAL=300
|
||||
|
||||
# --- 可观测性(P6)---
|
||||
NEXT_PUBLIC_SENTRY_DSN=
|
||||
NEXT_PUBLIC_OTEL_EXPORTER_URL=
|
||||
|
||||
# --- 应用元信息 ---
|
||||
NEXT_PUBLIC_APP_NAME=student-portal
|
||||
NEXT_PUBLIC_APP_VERSION=0.1.0
|
||||
Reference in New Issue
Block a user