mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-25 14:44:49 +02:00
⚡ Update Node version for Netlify deployments
This commit is contained in:
parent
4886e97f2c
commit
08e6bc6c27
@ -22,7 +22,7 @@ RUN yarn install --ignore-engines --immutable --no-cache --network-timeout 30000
|
|||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
# Build initial app for production
|
# Build initial app for production
|
||||||
RUN NODE_OPTIONS=--openssl-legacy-provider yarn build --mode production
|
RUN yarn build --mode production
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM node:20.11.1-alpine3.19
|
FROM node:20.11.1-alpine3.19
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
command = "yarn build"
|
command = "yarn build"
|
||||||
publish = "dist"
|
publish = "dist"
|
||||||
functions = "services/serverless-functions"
|
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
|
# Site info, used for the 1-Click deploy page
|
||||||
[template.environment]
|
[template.environment]
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server",
|
"start": "node server",
|
||||||
"dev": "vue-cli-service serve",
|
"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",
|
"lint": "vue-cli-service lint",
|
||||||
"pm2-start": "npx pm2 start server.js",
|
"pm2-start": "npx pm2 start server.js",
|
||||||
"build-watch": "vue-cli-service build --watch --mode production",
|
"build-watch": "vue-cli-service build --watch --mode production",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user