From b3414f260b0f233cdfb1b2df9d69a0fed730a6a0 Mon Sep 17 00:00:00 2001 From: Federico Badini Date: Thu, 29 Jun 2023 14:38:25 +0200 Subject: [PATCH] fix: add env var also to build scripts --- frontend/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 2d909fd5..af437a6d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,8 +14,8 @@ "codegen:watch": "cross-env NODE_OPTIONS=\"--dns-result-order ipv4first\" DOTENV_CONFIG_PATH=./.env.development graphql-codegen -r dotenv/config --config codegen/config.ts --watch", "codegen:download-strapi-schema": "cross-env NODE_OPTIONS=\"--dns-result-order ipv4first\" DOTENV_CONFIG_PATH=./.env.development graphql-codegen -r dotenv/config --config codegen/strapi-schema-config.ts", "codegen:download-shopify-storefront-schema": "NODE_OPTIONS=\"--dns-result-order ipv4first\" node ./lib/shopify-storefront-sdk/generate-schema.js", - "build": "next build", - "start": "next start", + "build": "NODE_OPTIONS=\"--dns-result-order ipv4first\" next build", + "start": "NODE_OPTIONS=\"--dns-result-order ipv4first\" next start", "type-check": "tsc --pretty --noEmit", "format": "prettier --write .", "lint": "eslint . --ext ts --ext tsx --ext js",