From 30875c471001e712b98f5df145beb9f8ea73bac5 Mon Sep 17 00:00:00 2001 From: Sujith Date: Fri, 3 Mar 2023 02:06:33 +0530 Subject: [PATCH 1/2] chore: upgrade node version to 18 Signed-off-by: Sujith --- Dockerfile | 3 ++- package.json | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eb4d60b962..f3d960a55e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM node:12-alpine +FROM node:18.10.0-alpine ARG NEXTJS_DOTENV ENV NEXTJS_DOTENV=$NEXTJS_DOTENV +ENV NODE_OPTIONS=--openssl-legacy-provider # hadolint ignore=DL3018 RUN apk --no-cache add bash curl less tini vim make diff --git a/package.json b/package.json index e42703f4b5..2b3434ef5b 100644 --- a/package.json +++ b/package.json @@ -53,12 +53,15 @@ "sideEffects": false, "scripts": { "dev": "echo 'Note: dev script has been renamed to start:dev' && yarn run start:dev", + "dev:latest": "echo 'Note: dev script has been renamed to start:dev:latest' && yarn run start:dev:latest", "build": "yarn run build-clean && NODE_ENV=production IS_BUILDING_NEXTJS=1 next build", + "build:latest": "yarn run build-clean && NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production IS_BUILDING_NEXTJS=1 next build", "build-clean": "rimraf .next", "lint": "eslint .", "lint:fix": "eslint . --fix", "start": "NODE_ENV=production next start -p 4000", "start:dev": "NODE_ENV=development next dev -p 4000", + "start:dev:latest": "NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development next dev -p 4000", "test": "yarn run test:unit", "test:ci": "yarn run test:unit --ci --runInBand --colors", "test:unit": "NODE_ENV=jesttest jest", From 2dd1a718e354cfdfb0a807129450fc7666455956 Mon Sep 17 00:00:00 2001 From: Sujith Date: Thu, 16 Mar 2023 13:37:39 +0530 Subject: [PATCH 2/2] fix: additional updates Signed-off-by: Sujith --- .circleci/config.yml | 2 +- .nvmrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6756af014d..e9fed8ad38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,7 +19,7 @@ defaults: &defaults - GITOPS_PR_WEBHOOK: "https://w603b5hwp1.execute-api.us-east-1.amazonaws.com/dev/pullrequests" - GLOBAL_CACHE_VERSION: “v3” docker: - - image: circleci/node:12-stretch + - image: cimg/node:18.10.0 jobs: install-dependencies: diff --git a/.nvmrc b/.nvmrc index 5c088ddb94..5036cb7c07 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12.14.1 +18.10.0