Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

vercel-deno-dev

Package Overview
Dependencies
2
Maintainers
1
Versions
191
Issues
File Explorer

Advanced tools

vercel-deno-dev

run deno on vercel

    0.1.0-269908ea9a8e6f3bf7977266a25c196b6352080blatest

Version published
Maintainers
1
Yearly downloads
4,695
decreased by-82.49%

Weekly downloads

Readme

Source

Deno Runtime for Vercel (vercel-deno-runtime)

A runtime designed for those who wants to migrate serverless functions built on Node runtime to 🦕Deno that is compatible with ▲Vercel's NowRequest and NowResponse.

Usage

// vercel.json { "functions": { "api/**/*.{ts,tsx}": { "runtime": "vercel-deno-runtime" } }, "build":{ "env":{ "DENO_VERSION":"1.1.0 OR latest", "DENO_CONFIG":"tsconfig.json", "DENO_UNSTABLE":true } } } // /api/hello.ts import { NowRequest, NowResponse } from "https://unpkg.com/[email protected]/dist/boot/nowHandler.ts"; export default async function handler(req:NowRequest,res:NowResponse) { res.statuscode(200).send(`Welcome to deno ${Deno.version.deno} 🦕`); }

Note: vercel v17.x or above are required to use the above configuration.

Configurations

NameDescriptionDefault
DENO_VERSIONWhich deno version to be used for serverless functionslatest
DENO_CONFIGImplement custom tsconfig.json to be used for serverless functions<empty>
DENO_UNSTABLEadd --unstable flag at build-time deno cache and runtime deno runfalse

Development

References

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc