nodeboot-server-netlify
Installation
SKILL.md
Node-Boot on Netlify Functions
Use @nodeboot/netlify-server when one Netlify 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-netlify my-app. - Existing app: look for
netlify/functions/api.ts,netlify.toml, and@nodeboot/netlify-serverinpackage.jsonto confirm this adapter is (or isn't) already wired.
Minimal function entry point
Grounded in samples/sample-netlify/netlify/functions/api.ts:
import {HandlerContext, HandlerEvent, HandlerResponse, NetlifyHandler, NetlifyServer} from "@nodeboot/netlify-server";
import {NetlifySampleApp} from "../../src/app";