0.3.0 • Published 1 year ago

@sigbit/nvr v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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

0.3.0

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago