@jorvel/adapter-vercel
v0.3.0
Published
Vercel deployment adapter for JORVEL (Edge Functions + static assets).
Maintainers
Readme
@jorvel/adapter-vercel
Vercel deployment adapter for JORVEL.
Install
pnpm add @jorvel/adapter-vercelUse
// api/ssr.ts
import { createVercelHandler } from '@jorvel/adapter-vercel';
import App from '../src/App.js';
import { routes } from '../src/routes.js';
import template from '../public/index.html?raw';
const handler = createVercelHandler({ App, routes, template });
export default handler;
export const config = { runtime: 'edge' };vercel.json
Copy templates/vercel.json to the project root. Tweak outputDirectory for the shell path.
Deploy
vercel deploy