Skip to content

Commit 398e7b7

Browse files
Claudehotlong
andauthored
fix(app-host): add Hono import to api entrypoint and .npmrc for Vercel deployment
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/9621c65e-3c3d-4683-b92b-b41ad6639997 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent e11a0b9 commit 398e7b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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 pnpm configuration
2+
# Use hoisted node_modules structure instead of symlinks to avoid Vercel packaging errors.
3+
node-linker=hoisted

examples/app-host/api/[[...route]].js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
// @see ../server/index.ts — the actual server entrypoint
1414
// @see ../scripts/bundle-api.mjs — the esbuild bundler
1515

16+
// Import Hono to satisfy Vercel's framework detection (unused, but required for detection).
17+
import 'hono';
18+
1619
export { default, config } from './_handler.js';

0 commit comments

Comments
 (0)