From 4886e97f2cc723e275560b040316b3f5abdf4f54 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 4 Mar 2024 13:40:03 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Remove=20NODE=5FOPTIONS=20from=20bu?= =?UTF-8?q?ild=20command,=20fix=20Netlify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 1 + Dockerfile | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..2b008da6 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +node-options="--openssl-legacy-provider" diff --git a/Dockerfile b/Dockerfile index f04224f9..1722d11f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN yarn install --ignore-engines --immutable --no-cache --network-timeout 30000 COPY . ./ # Build initial app for production -RUN yarn build --mode production +RUN NODE_OPTIONS=--openssl-legacy-provider yarn build --mode production # Production stage FROM node:20.11.1-alpine3.19 diff --git a/package.json b/package.json index 8e4f144a..96af62f5 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "start": "node server", "dev": "vue-cli-service serve", - "build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build", + "build": "vue-cli-service build", "lint": "vue-cli-service lint", "pm2-start": "npx pm2 start server.js", "build-watch": "vue-cli-service build --watch --mode production",