This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
shamefully-hoist=true
|
||||
public-hoist-pattern[]=*typeorm*
|
||||
public-hoist-pattern[]=*ts-node*
|
||||
# Reduce bin creation warnings
|
||||
prefer-workspace-packages=true
|
||||
|
||||
+2
-1
@@ -49,7 +49,8 @@ RUN cd backend && \
|
||||
pnpm run build
|
||||
|
||||
# Deploy with production deps only (pnpm workspace isolation)
|
||||
RUN pnpm --filter backend deploy --prod --shamefully-hoist --legacy /app/backend-prod
|
||||
RUN PNPM_IGNORE_SCRIPTS=none \
|
||||
pnpm --filter backend deploy --prod --shamefully-hoist --legacy --no-optional /app/backend-prod
|
||||
|
||||
# Clean up unnecessary files to reduce size
|
||||
RUN find /app/backend-prod/node_modules -name "*.md" -delete \
|
||||
|
||||
+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