Skip to content

chore: upgrade the front to Node 26 on Alpine - #216

Merged
nasdan merged 1 commit into
mainfrom
chore/node-26
Nov 5, 2026
Merged

nasdan merged 1 commit into
mainfrom
chore/node-26

Conversation

@nasdan

@nasdan nasdan commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Node 22 reaches end of life on 30/04/2027, so this moves the front (info-embalse-front-prod) to Node 26 LTS.

  • front/Dockerfile: node:22-alpine → node:26-alpine3.24 in the builder and runner stages.
  • deploy-front.yml: GitHub Actions bumped to their node24 majors: actions/checkout@v7, docker/login-action@v4, docker/setup-buildx-action@v4, docker/build-push-action@v7 (azure/webapps-deploy@v3 already runs on node24).
  • ci.yml: Node 20.x → 26.x, actions/checkout@v7, actions/setup-node@v7.

The Azure Function (fn-info-embalse-prod, deploy-functions.yml) is not touched here: Azure Functions doesn't offer Node 26 yet, so it will move to Node 24 in a separate PR after the runtime is changed in the portal.

Local verification

  • docker buildx build --platform linux/amd64 -f front/Dockerfile . on Node 26.13.0 / Alpine 3.24.3: OK.
  • CI steps on Node 26: turbo type-check 22/22 tasks, npm run test 9 files / 73 tests passed.
  • Container with a temporary MongoDB and a test reservoir: the 13 routes → 200, unknown routes → 404; the MongoDB driver connects and the province page and reservoir detail render the test document; no restarts. Content Island data was not checked locally (no token).

Notes (not changed here)

  • The Dockerfile forces @tailwindcss/oxide-linux-x64-musl, so it only builds on x64 (fails on arm64 machines). The lockfile already includes the musl binaries, and the packageManager removal was for Corepack, which Node 26 no longer ships; both workarounds could probably be dropped.
  • For a reservoir slug that doesn't exist, generateMetadata logs Cannot read properties of null (reading 'nombre') (the page still returns 404).

Merging deploys to info-embalse-front-prod.

🤖 Generated with Claude Code

- front/Dockerfile: node:22-alpine -> node:26-alpine3.24 (build and runtime)
- deploy-front.yml: checkout@v7, login-action@v4, setup-buildx-action@v4
  and build-push-action@v7 (node24 runtimes)
- ci.yml: Node 20.x -> 26.x, checkout@v7 and setup-node@v7

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nasdan
nasdan merged commit 4b5ddde into main Nov 5, 2026
1 check passed
@nasdan
nasdan deleted the chore/node-26 branch November 5, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant