Skip to content

Commit

Permalink
Forward the Next.js server port inside the development container
Browse files Browse the repository at this point in the history
  • Loading branch information
exil0867 committed Apr 15, 2023
1 parent ab2e802 commit b7e2d63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b7e2d63

Please sign in to comment.