From 1139f527a54b8fe82aa3a0f3e69d1477b3f4db4e Mon Sep 17 00:00:00 2001 From: fouash <52512053+fouash@users.noreply.github.com> Date: Fri, 6 Feb 2026 19:40:28 +0300 Subject: [PATCH] Update Vercel Node.js runtime --- .changeset/bright-cars-allow.md | 5 +++++ api/index.js | 4 ++-- vercel.json | 14 ++++++-------- 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 .changeset/bright-cars-allow.md diff --git a/.changeset/bright-cars-allow.md b/.changeset/bright-cars-allow.md new file mode 100644 index 0000000000000..a9c3e5a792d47 --- /dev/null +++ b/.changeset/bright-cars-allow.md @@ -0,0 +1,5 @@ +--- +'directus': patch +--- + +Updated Vercel runtime to use Node.js 22 for deployments. diff --git a/api/index.js b/api/index.js index 47e94551ea1df..e9992bb6fe59c 100644 --- a/api/index.js +++ b/api/index.js @@ -1,5 +1,5 @@ -import { createServer } from "http"; -import directus from "../directus"; +import { createServer } from 'http'; +import directus from '../directus'; const server = createServer(directus); diff --git a/vercel.json b/vercel.json index 469a43893c9b6..c611f83b907f0 100644 --- a/vercel.json +++ b/vercel.json @@ -1,10 +1,8 @@ { - "functions": { - "api/index.js": { - "runtime": "nodejs18.x" - } - }, - "routes": [ - { "src": "/(.*)", "dest": "/api/index.js" } - ] + "functions": { + "api/index.js": { + "runtime": "nodejs22.x" + } + }, + "routes": [{ "src": "/(.*)", "dest": "/api/index.js" }] }