Vercel

Deploying to Vercel is straightforward with the Vercel adapter. It supports both Serverless Functions (Node.js) and Edge Functions.

Usage

  1. Install the adapter:

    npm install @neutron/adapter-vercel
    
  2. Update neutron.config.ts:

    import vercel from "@neutron/adapter-vercel";
    
    export default defineConfig({
      adapter: vercel({
        edge: false, // Set to true for Edge Functions
      }),
    });
    
  3. Deploy:

    npx vercel
    

Edge Middleware

If you enable edge: true, your application will run on Vercel's Edge Runtime. Ensure your dependencies are compatible with the edge (no Node.js built-ins like fs or path).