fix: use webpack and 1 worker for low-memory storefront builds
This commit is contained in:
@@ -30,7 +30,7 @@ ENV NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY=$NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY
|
||||
ENV NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL
|
||||
ENV NEXT_PUBLIC_DEFAULT_REGION=$NEXT_PUBLIC_DEFAULT_REGION
|
||||
ENV NODE_ENV=production
|
||||
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||
ENV NODE_OPTIONS="--max-old-space-size=1024"
|
||||
|
||||
RUN npm run build --workspace=@dtc/suman-hrvatska
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ const S3_PATHNAME = process.env.MEDUSA_CLOUD_S3_PATHNAME
|
||||
*/
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
experimental: {
|
||||
cpus: 1,
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "next dev -p 8002",
|
||||
"build": "next build",
|
||||
"build": "next build --webpack",
|
||||
"start": "next start -p 8002",
|
||||
"lint": "eslint .",
|
||||
"analyze": "ANALYZE=true next build"
|
||||
|
||||
Reference in New Issue
Block a user