Aligns with our backend and updates to the latest LTS version of Node.
Vercel already supports Node 26, so we can switch the Vercel
configuration as well, but that shouldn't need immediate coordination as
part of the deployment. To prevent errors on Vercel builds, we are using
`>=24` in the `package.json`, so this can be deployed on 24.x and 26.x.
Once all Vercel deployments are switched to 26.x, we can pin this to 26.
The pnpm bump lives in a separate PR.
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## Problem
`engines.node` used open-ended ranges (`>=22.23.4` at the root,
`>=22.12.0` in `apps/kb`). Vercel resolves an open-ended range to the
newest Node.js major, so it overrides the project's configured version
and warns that future majors will be picked automatically. The other
apps declared no engine at all, and `.nvmrc` (used by local dev and CI)
still pointed at Node 22.
## Solution
Pin Node.js 24 everywhere the repo declares a Node version:
- `.nvmrc`: `22.23.4` -> `24.22.3` (latest v24 LTS). CI workflows read
`node-version-file: .nvmrc`, so they follow.
- Root `package.json` and `apps/kb/package.json`: `engines.node` ->
`24.x`.
- Every other app (`design-system`, `docs`, `learn`, `lite-studio`,
`studio`, `ui-library`, `www`): add `engines.node: "24.x"`. Vercel reads
the Node.js version from `engines.node` in the project's `package.json`;
`vercel.json` has no setting for it, so this is how each Vercel project
gets an explicit version.
- `.agents/skills/test-the-docs/sandbox/Dockerfile`:
`node:22-bookworm-slim` -> `node:24-bookworm-slim`.
- `AGENTS.md`: update the stated Node requirement.
Notes:
- `engineStrict: true` is set in `pnpm-workspace.yaml`, so `pnpm
install` now requires Node 24 locally.
- `.github/workflows/self-host-tests-smoke.yml` hardcodes `node-version:
'22'` and is not changed here.
- No builds or tests were run for this change. Checked that all changed
`package.json` files parse and that Prettier passes on the changed
files.
## Review instructions
1. Open the Vercel build logs for this PR's deployments (studio, docs,
www, kb, and so on).
2. Confirm each build uses Node.js 24.x.
3. Confirm the logs no longer show the warning that the `engines` field
overrides the project's Node.js version, or the warning about automatic
upgrades to new major versions.
4. Confirm CI jobs that use `.nvmrc` set up Node 24.22.3.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
[FE-5004](https://linear.app/supabase/issue/FE-5004/bump-the-nodejs-version-across-the-repository)
---------
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
## Problem
`pnpm audit` reports a moderate advisory for `nuxt` (patched in
`>=4.6.2`). The lockfile resolves `nuxt` to 4.5.2 for `blocks/vue`.
## Solution
- Ran `pnpm tsx scripts/fix-audit-vulnerability.ts nuxt --json`. It
resolved `nuxt` from 4.5.2 to 4.6.3 without a permanent override
(`pnpm-lock.yaml` only). The other lockfile changes are the transitive
re-resolutions that come with the nuxt upgrade.
- nuxt 4.6 types `useRequestEvent()` through `ServerTypes`, which
`@nuxt/nitro-server` augments inside a Nuxt app. `blocks/vue` is not a
Nuxt app, so the call resolved to the generic `RequestEvent`, and
`@supabase/vue-blocks` failed typecheck where it passes that value to
`createSupabaseServerClient(event: H3Event | undefined)`. The nuxtjs
`is-authenticated` middleware now casts the event to h3's `H3Event`.
Under Nitro that is its runtime type, so the block works the same in
user apps.
- Regenerated `apps/ui-library/public/r/supabase-client-nuxtjs.json`
with `pnpm build:registry`.
## Review instructions
1. `pnpm install --frozen-lockfile` succeeds.
2. `pnpm audit --json` lists no advisory for `nuxt`.
3. `pnpm turbo run typecheck --filter='...[origin/master]'` passes
(17/17 tasks, including `@supabase/vue-blocks`).
4. `pnpm turbo run lint --filter='[origin/master]'` passes.
5. On the UI library preview, the Supabase client for Nuxt.js block
shows the updated `is-authenticated.ts` middleware with the `H3Event`
cast.
Verification: ran all of the commands above, plus Prettier on the
changed files. The first studio typecheck run was killed for running out
of memory (exit 137). Rerun with turbo concurrency 1, it passed.
## Checklist
- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
[FE-4886](https://linear.app/supabase/issue/FE-4886/bump-a-single-vulnerable-dependency)
---------
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>