Skip to content

Commit 33c7ce3

Browse files
feat: add Vercel deployment support to app-host example using Hono
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/cc91e2f2-a734-4a52-b865-5fa83a86e934 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent dbd57ac commit 33c7ce3

File tree

10 files changed

+168587
-7
lines changed

10 files changed

+168587
-7
lines changed

examples/app-host/.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Vercel deployment configuration
2+
# Use hoisted node_modules to prevent symlink issues
3+
node-linker=hoisted
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Vercel Serverless Function — Catch-all API route.
2+
//
3+
// This file MUST be committed to the repository so Vercel can detect it
4+
// as a serverless function during the pre-build phase.
5+
//
6+
// It delegates to the esbuild bundle (`_handler.js`) generated by
7+
// `scripts/bundle-api.mjs` during the Vercel build step. A separate
8+
// bundle file is used (rather than overwriting this file) so that:
9+
// 1. Vercel always finds this committed entry point (no "File not found").
10+
// 2. Vercel does not TypeScript-compile a .ts stub that references
11+
// source files absent at runtime (no ERR_MODULE_NOT_FOUND).
12+
//
13+
// @see ../server/index.ts — the actual server entrypoint
14+
// @see ../scripts/bundle-api.mjs — the esbuild bundler
15+
16+
export { default, config } from './_handler.js';

0 commit comments

Comments
 (0)