Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

@sigbit/nvr

Use Nitro on Vercel with mixed serverless & edge functions

Motivation

unjs/nitro#1120

Usage

This script assumes your primary target is vercel-edge. Add npx @sigbit/nvr <function> [function...] after your normal build script to make the specified functions run in a serverless (Node) environment.

{
"scripts": {
"build": "nuxt build && npx @sigbit/nvr /api/my-function"
}
}

Note

This script will trigger another non-edge rebuild and use these files in the final composition. Therefore, additional time is added to the deployment.

License

MIT

About

Use Nitro on Vercel with mixed serverless & edge functions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages