Update Node version for Netlify deployments

This commit is contained in:
Alicia Sykes 2024-03-04 13:47:15 +00:00
parent 4886e97f2c
commit 08e6bc6c27
4 changed files with 3 additions and 4 deletions

1
.npmrc
View File

@ -1 +0,0 @@
node-options="--openssl-legacy-provider"

View File

@ -22,7 +22,7 @@ RUN yarn install --ignore-engines --immutable --no-cache --network-timeout 30000
COPY . ./
# Build initial app for production
RUN NODE_OPTIONS=--openssl-legacy-provider yarn build --mode production
RUN yarn build --mode production
# Production stage
FROM node:20.11.1-alpine3.19

View File

@ -8,7 +8,7 @@
command = "yarn build"
publish = "dist"
functions = "services/serverless-functions"
environment = { NODE_VERSION = "16.13.2" }
environment = { NODE_VERSION = "20.11.1", NODE_OPTIONS = "--openssl-legacy-provider" }
# Site info, used for the 1-Click deploy page
[template.environment]

View File

@ -7,7 +7,7 @@
"scripts": {
"start": "node server",
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "NODE_OPTIONS=--openssl-legacy-provider 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",