nodeboot-server-vercel
Installation
SKILL.md
Node-Boot on Vercel
Use @nodeboot/vercel-server when one Vercel Node.js Serverless Function should front the whole Node-Boot router.
Fresh start or existing app?
Read ../_shared/fresh-vs-existing.md first, then apply it here:
- Fresh start:
npx degit nodejs-boot/node-boot/samples/sample-vercel my-app. - Existing app: look for
api/[...path].tsand@nodeboot/vercel-serverinpackage.jsonto confirm this adapter is (or isn't) already wired.
Minimal function entry point
Grounded in samples/sample-vercel/api/[...path].ts:
import type {VercelRequest, VercelResponse} from "@nodeboot/vercel-server";
import {VercelHandler, VercelServer} from "@nodeboot/vercel-server";
import {VercelSampleApp} from "../src/app";