Vercel
Deploying to Vercel is straightforward with the Vercel adapter. It supports both Serverless Functions (Node.js) and Edge Functions.
Usage
-
Install the adapter:
npm install @neutron/adapter-vercel -
Update
neutron.config.ts:import vercel from "@neutron/adapter-vercel"; export default defineConfig({ adapter: vercel({ edge: false, // Set to true for Edge Functions }), }); -
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).