vercel-deno-runtime
This runtime is currently on development and might be broken on some specific cases specified in the Known Limitation section.
Deno runtime for vercel
.
Usage
{
"functions": {
"api/**/*.{ts,tsx}": {
"runtime": "vercel-deno-runtime"
}
},
"build":{
"env":{
"DENO_VERSION":"1.0.5 OR latest",
"DENO_CONFIG":"tsconfig.json",
"DENO_UNSTABLE":true
}
}
}
import { NowRequest, NowResponse } from "https://deno.land/x/npm:vercel-deno-runtime/dist/boot/nowHandler.ts";
export default async function handler(req:NowRequest,res:NowResponse) {
res.statuscode(200).send(`Welcome to deno ${Deno.version.deno} 🦕`);
}
Default configs
DENO_VERSION
: "latest"DENO_CONFIG
: ""DENO_UNSTABLE
: false
Note: vercel
v17.x or above are required to use the above configuration.
Known limitation
- only works on linux, for now.
TODO
References