This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
shamefully-hoist=true
|
shamefully-hoist=true
|
||||||
public-hoist-pattern[]=*typeorm*
|
public-hoist-pattern[]=*typeorm*
|
||||||
public-hoist-pattern[]=*ts-node*
|
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
|
pnpm run build
|
||||||
|
|
||||||
# Deploy with production deps only (pnpm workspace isolation)
|
# 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
|
# Clean up unnecessary files to reduce size
|
||||||
RUN find /app/backend-prod/node_modules -name "*.md" -delete \
|
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 NODE_OPTIONS="--max-old-space-size=2048"
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
# Build Next.js → frontend/.next/standalone
|
# Build Next.js → frontend/.next/standalone (use webpack to avoid Turbopack issues)
|
||||||
RUN cd frontend && pnpm run build
|
RUN cd frontend && pnpm run build --webpack
|
||||||
|
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
|
|||||||
@@ -36,13 +36,12 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// 5. Experimental: Handle client component static generation issues
|
// 5. Turbopack config for Next.js 16
|
||||||
experimental: {
|
turbopack: {
|
||||||
// Disable static optimization for client components that cause build failures
|
// Empty config to silence Turbopack warnings
|
||||||
missingSuspenseWithCSRBailout: false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 5.1. Webpack config to suppress warnings
|
// 5.1. Webpack config (fallback for Turbopack)
|
||||||
webpack: (config, { dev, isServer }) => {
|
webpack: (config, { dev, isServer }) => {
|
||||||
if (!dev && !isServer) {
|
if (!dev && !isServer) {
|
||||||
config.stats = {
|
config.stats = {
|
||||||
|
|||||||
Reference in New Issue
Block a user