Compare commits
1 Commits
v2.1.0-rc.
...
v2.1.0-rc.
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cad437eb4 |
@@ -41,8 +41,8 @@ CMD ["pnpm", "dev:local"]
|
||||
# Build application
|
||||
# Stage 3: Builder (Production)
|
||||
FROM base AS builder
|
||||
# Limit memory to 2GB to prevent ResourceExhausted on 4GB runner
|
||||
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||
# Limit memory to 1GB to prevent ResourceExhausted in combination with worker limits
|
||||
ENV NODE_OPTIONS="--max-old-space-size=1024"
|
||||
RUN pnpm build
|
||||
|
||||
# Stage 3: Runner
|
||||
|
||||
@@ -13,6 +13,9 @@ const nextConfig = {
|
||||
},
|
||||
experimental: {
|
||||
optimizePackageImports: ['lucide-react', 'framer-motion', '@/components/ui'],
|
||||
cpus: 1,
|
||||
workerThreads: false,
|
||||
memoryBasedWorkersCount: true,
|
||||
},
|
||||
reactStrictMode: false,
|
||||
productionBrowserSourceMaps: false,
|
||||
|
||||
Reference in New Issue
Block a user