This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
|
||||
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Build Next.js → frontend/.next/standalone
|
||||
RUN cd frontend && pnpm run build
|
||||
# Build Next.js → frontend/.next/standalone (use webpack to avoid Turbopack issues)
|
||||
RUN cd frontend && pnpm run build --webpack
|
||||
|
||||
|
||||
# =========================
|
||||
|
||||
@@ -36,13 +36,12 @@ const nextConfig = {
|
||||
},
|
||||
*/
|
||||
|
||||
// 5. Experimental: Handle client component static generation issues
|
||||
experimental: {
|
||||
// Disable static optimization for client components that cause build failures
|
||||
missingSuspenseWithCSRBailout: false,
|
||||
// 5. Turbopack config for Next.js 16
|
||||
turbopack: {
|
||||
// Empty config to silence Turbopack warnings
|
||||
},
|
||||
|
||||
// 5.1. Webpack config to suppress warnings
|
||||
// 5.1. Webpack config (fallback for Turbopack)
|
||||
webpack: (config, { dev, isServer }) => {
|
||||
if (!dev && !isServer) {
|
||||
config.stats = {
|
||||
|
||||
Reference in New Issue
Block a user