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:
SpecialX
2026-07-13 17:21:39 +08:00
parent 8b729a710f
commit 96a936e154
14 changed files with 453 additions and 55 deletions

View File

@@ -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,