From b7e2d63553038ad301f7a7c45dee5ce1c871af59 Mon Sep 17 00:00:00 2001 From: 3x!1 Date: Sat, 15 Apr 2023 01:18:26 +0000 Subject: [PATCH] Forward the Next.js server port inside the development container --- .devcontainer/devcontainer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index df4016b39d..a82e43542d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,13 +3,15 @@ { "name": "AgentGPT", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18" + "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + "forwardPorts": [ + 3000 + ] // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install",