feat(parent-portal): docker 构建修复 + 禁用 mock + 记录下游待办
Dockerfile 改用 standalone 模式 next.config.js 添加 output standalone 修复 cssnano-simple 构建失败:globals.css 注释含 */ 被误解析 tailwind.config.js 覆盖 boxShadow 为 rgba 格式 + 禁用 ringWidth 组件修复:替换 / 语法为 inline style 或自定义类 otel.ts 添加 webpackIgnore 跳过 optionalDependencies 静态分析 .env.example 默认禁用 mock 新增 .dockerignore 和 docs/nextstep.md 删除 postcss.config.js 验证:Docker 镜像构建成功,容器 healthy,typecheck + lint 零错误
This commit is contained in:
@@ -26,6 +26,8 @@ const remotes = (isServer) => ({
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
// standalone 输出模式:自包含 server.js + 精简 node_modules(适合 Docker 部署)
|
||||
output: "standalone",
|
||||
// ESM 兼容(MF 2.0 需要)
|
||||
experimental: {
|
||||
externalDir: true,
|
||||
|
||||
Reference in New Issue
Block a user