@hattip/bundler-vercel v0.0.45
@hattip/bundler-vercel
Hattip bundler for Vercel Serverless Functions and Vercel Edge Functions. It uses esbuild
behind the scenes.
CLI
hattip-vercel
Bundle a Hattip app for Vercel
Options:
-o, --outputDir <path> Root directory of the app
-c, --clearOutputDir Clear the output directory before bundling
-s, --staticDir <path> Static directory to copy to output
-e, --edge <path> Edge function entry file
-S, --serverless <path> Serverless function entry file
-h, --help Display this message
-v, --version Display version number
The edge function entry should be in the following form:
import adapterVercel from "@hattip/adapter-vercel-edge";
import handler from "./handler.js";
export default adapterVercel(handler);
The serverless function entry should be in the following form:
import { createMiddleware } from "@hattip/adapter-node";
import handler from "./handler.js";
export default createMiddleware(handler, { trustProxy: true });
The bundler output (by default .vercel/output
) is compatible with the Vercel Build Output API (v3).
JavaScript API
š§ TODO š§
Refer to the TypeScript for the time being.
2 months ago
2 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
10 months ago
9 months ago
10 months ago
8 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago