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" }] }