fix: webpack build, low memory limits, and sitemap try/catch for Docker deploy
- Switch both storefronts from Turbopack to Webpack (next build --webpack) - Limit build workers to 1 CPU (experimental.cpus: 1) - Reduce NODE_OPTIONS max-old-space-size from 2048 to 1024 MB - Wrap sitemap.ts API calls in try/catch to prevent build crash when backend is unavailable during Docker build - During build, sitemap returns static paths only; at runtime it fetches full dynamic data
This commit is contained in:
@@ -13,6 +13,9 @@ const S3_PATHNAME = process.env.MEDUSA_CLOUD_S3_PATHNAME
|
||||
*/
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
experimental: {
|
||||
cpus: 1,
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user