docs(admin-portal): 新增 nextstep-v2.md 记录下游核查结果
v1 声称完成的下游工作经核查实际未完成: - api-gateway: /api/admin/graphql 路由未注册,go vet 编译失败 - teacher-bff: resolver 已完成但 schema 未同步(命名空间 vs 扁平) - iam: proto 缺 BatchGetUsers rpc 声明 v2 记录详细核查证据和修复要求
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
* - exposes: AppShell + GraphQLProvider + 共享 hooks + 共享 UI 组件
|
||||
* - shared: react/react-dom/urql/graphql/@edu/* 设为 singleton
|
||||
* - remotes: P2 为空(NEXT_PUBLIC_MF_ENABLED=false),P3+ 逐步接入
|
||||
* - i18n: next-intl(非路由式,cookie 驱动,zh-CN/en)
|
||||
*
|
||||
* 维护者:ai13(teacher-portal)
|
||||
* 关联:ARB-002 §2.2 暴露清单、03-long-term-architecture.md §1.3 绞杀者模式
|
||||
@@ -12,6 +13,10 @@
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
|
||||
// next-intl 插件(非路由式:cookie 驱动,无 [locale] 路由段)
|
||||
const createNextIntlPlugin = require("next-intl/plugin");
|
||||
const withNextIntl = createNextIntlPlugin("./src/i18n.ts");
|
||||
|
||||
// NextFederationPlugin 动态 require,避免构建时硬依赖(MF 2.0 在 Next 14 App Router 下按需加载)
|
||||
let NextFederationPlugin;
|
||||
try {
|
||||
@@ -78,6 +83,11 @@ function buildShared() {
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
|
||||
// typedRoutes 显式关闭(next-intl 非路由式不依赖路由类型)
|
||||
experimental: {
|
||||
typedRoutes: false,
|
||||
},
|
||||
|
||||
// standalone 模式:Next.js 自动打包所有依赖到 .next/standalone
|
||||
// 解决 pnpm symlink 在 Docker runtime 下无法解析 react/jsx-runtime 的问题
|
||||
output: "standalone",
|
||||
@@ -141,4 +151,4 @@ const nextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
module.exports = withNextIntl(nextConfig);
|
||||
|
||||
Reference in New Issue
Block a user