From 398e7b724375a8f6ac1f688c48a6c148efce9dfd Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Tue, 14 Apr 2026 06:04:49 +0000 Subject: [PATCH 1/2] 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> --- examples/app-host/.npmrc | 3 +++ examples/app-host/api/[[...route]].js | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 examples/app-host/.npmrc diff --git a/examples/app-host/.npmrc b/examples/app-host/.npmrc new file mode 100644 index 000000000..4a3d47b9a --- /dev/null +++ b/examples/app-host/.npmrc @@ -0,0 +1,3 @@ +# Vercel pnpm configuration +# Use hoisted node_modules structure instead of symlinks to avoid Vercel packaging errors. +node-linker=hoisted diff --git a/examples/app-host/api/[[...route]].js b/examples/app-host/api/[[...route]].js index 1bbcc8746..19e6dad24 100644 --- a/examples/app-host/api/[[...route]].js +++ b/examples/app-host/api/[[...route]].js @@ -13,4 +13,7 @@ // @see ../server/index.ts — the actual server entrypoint // @see ../scripts/bundle-api.mjs — the esbuild bundler +// Import Hono to satisfy Vercel's framework detection (unused, but required for detection). +import 'hono'; + export { default, config } from './_handler.js'; From 8c7af001460cb060a3b0e35c5e7d704042cbca98 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Tue, 14 Apr 2026 06:10:22 +0000 Subject: [PATCH 2/2] fix(app-host): set framework to null in vercel.json to disable automatic framework detection Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/27393574-eb43-4112-b970-668b8ea9e8d9 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- examples/app-host/api/[[...route]].js | 3 --- examples/app-host/vercel.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/app-host/api/[[...route]].js b/examples/app-host/api/[[...route]].js index 19e6dad24..1bbcc8746 100644 --- a/examples/app-host/api/[[...route]].js +++ b/examples/app-host/api/[[...route]].js @@ -13,7 +13,4 @@ // @see ../server/index.ts — the actual server entrypoint // @see ../scripts/bundle-api.mjs — the esbuild bundler -// Import Hono to satisfy Vercel's framework detection (unused, but required for detection). -import 'hono'; - export { default, config } from './_handler.js'; diff --git a/examples/app-host/vercel.json b/examples/app-host/vercel.json index 2115782da..7c2d6eca0 100644 --- a/examples/app-host/vercel.json +++ b/examples/app-host/vercel.json @@ -1,6 +1,6 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", - "framework": "hono", + "framework": null, "installCommand": "cd ../.. && pnpm install", "buildCommand": "bash scripts/build-vercel.sh", "functions": {