You can now deploy a Node.js server to Vercel with zero configuration.
Vercel detects a server.ts file at the project root or at src/server.ts and deploys it as a Node.js application, in addition to existing zero-configuration backends like Express, Koa, and NestJS:
import { createServer } from 'node:http'
const server = createServer((req, res) => {
res.end('Hello from Node.js on Vercel!')
})
server.listen(process.env.PORT ?? 3000)
A Node app deployed on Vercel
Vercel CLI can handle local development and deployment:
# Run the server locally
vc dev
# Create a deployment
vc deploy
Both commands pick up server.ts automatically, with no configuration files required.
Backends on Vercel are powered by Fluid compute with Active CPU pricing.
Learn more about the Node.js runtime on Vercel.
0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.