Skip to content

Commit 02ce709

Browse files
authored
Simplify postAttachCommand in devcontainer.json
1 parent 275d7bf commit 02ce709

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@
6262
"onCreateCommand": "npm ci",
6363
"postStartCommand": "nohup bash -c 'npm start &'",
6464
// Set the port to be public
65-
"postAttachCommand": [
66-
"npm set //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN",
67-
"npm set @github:registry=https://npm.pkg.github.com/",
68-
"npm install -g @github/copilot",
69-
"gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\""
70-
],
65+
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
7166

7267
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
7368
"remoteUser": "node",

0 commit comments

Comments
 (0)