Skip to content

Commit

Permalink
Upgrade to node 22 build and add workaround so devcontainers prefer i…
Browse files Browse the repository at this point in the history
…pv4 binding (fixes WSL compat, will break ipv6 only systems)
  • Loading branch information
GingerGeek committed Dec 5, 2024
1 parent e0c2870 commit 5aa776d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
{
"name": "OKD Website Devcontainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
}
},

"updateContentCommand": "npm install",
"postAttachCommand": "npm start",
"postAttachCommand": "npm start-v4",

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: npm

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"start-v4": "docusaurus start -h 127.0.0.1",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand Down

0 comments on commit 5aa776d

Please sign in to comment.