New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sigbit/nvr

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sigbit/nvr

Use Nitro on Vercel with mixed serverless & edge functions

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
2
Created
Source

@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

Keywords

nitro

FAQs

Package last updated on 28 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts