From f706606f6ed5915b3f7a431573008ee792af9e4c Mon Sep 17 00:00:00 2001 From: Aanchal Pawar <97873570+glo82145@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:16:21 +0530 Subject: [PATCH] PWA-3288::DevContainer > Node 14 to 18 LTS #4170 (#4316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * DevContainer > Node 14 to 18 LTS * Delete .vscode directory * Update devcontainer.json --------- Co-authored-by: Rafael CorrĂȘa Gomes --- .devcontainer/devcontainer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1c02faa9e5..f7ffe27432 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,12 @@ { "name": "PWA Studio", - "image": "mcr.microsoft.com/devcontainers/javascript-node:0-14", + "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", + "containerEnv": { + "NODE_OPTIONS": "--openssl-legacy-provider" + }, "forwardPorts": [10000], - "postCreateCommand": "yarn install --frozen-lockfile && yarn build && yarn workspace @magento/venia-concept run watch", + "postCreateCommand": "yarn install --frozen-lockfile && yarn build", + "postStartCommand": "yarn workspace @magento/venia-concept run watch", "extensions": [ "larsroettig.vscode-pwa-studio", "GraphQL.vscode-graphql-syntax"