Skip to content

Commit 53e5907

Browse files
committed
Tell Github the dev server port is HTTPS
1 parent 9beabc0 commit 53e5907

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.devcontainer/devcontainer.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"image": "quay.io/vgteam/vg:v1.49.0",
3-
"forwardPorts": [3001],
3+
"forwardPorts": [3000, 3001],
44
"features": {
55
"ghcr.io/devcontainers/features/node:1": {},
66
"ghcr.io/devcontainers/features/git:1": {},
@@ -9,6 +9,16 @@
99
"command": "echo aWYgW1sgISAteiAiJHtHSVRIVUJfQ09ERVNQQUNFU19QT1JUX0ZPUldBUkRJTkdfRE9NQUlOfSIgXV0gOyB0aGVuIGV4cG9ydCBXRFNfU09DS0VUX0hPU1Q9IiR7Q09ERVNQQUNFX05BTUV9LTMwMDEuJHtHSVRIVUJfQ09ERVNQQUNFU19QT1JUX0ZPUldBUkRJTkdfRE9NQUlOfSI7IGV4cG9ydCBXRFNfU09DS0VUX1BPUlQ9NDQzOyBleHBvcnQgSE9TVD0wLjAuMC4wOyBleHBvcnQgSFRUUFM9dHJ1ZTsgZmkK | base64 --decode >>/etc/bash.bashrc # Line to tell Webpack dev server to ignore HOST and use the Github Codespace port forward if we are in a Codespace. Need to base64 here because double quotes cannot be escaped through the devcontainer build process."
1010
}
1111
},
12-
"postCreateCommand": ". ${NVM_DIR}/nvm.sh && nvm install"
12+
"postCreateCommand": ". ${NVM_DIR}/nvm.sh && nvm install",
13+
"portsAttributes": {
14+
"3001": {
15+
"label": "devserver",
16+
"protocol": "https"
17+
},
18+
"3000": {
19+
"label": "api",
20+
"onAutoForward": "silent"
21+
}
22+
}
1323
}
1424

0 commit comments

Comments
 (0)