-
Notifications
You must be signed in to change notification settings - Fork 1
fix(app-host): add Hono import to api entrypoint and .npmrc for Vercel deployment #1130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Vercel pnpm configuration | ||
| # Use hoisted node_modules structure instead of symlinks to avoid Vercel packaging errors. | ||
| node-linker=hoisted | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "$schema": "https://openapi.vercel.sh/vercel.json", | ||
| "framework": "hono", | ||
| "framework": null, | ||
| "installCommand": "cd ../.. && pnpm install", | ||
|
Comment on lines
2
to
4
|
||
| "buildCommand": "bash scripts/build-vercel.sh", | ||
| "functions": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node-linker=hoistedinexamples/app-host/.npmrclikely won’t be picked up by the current VercelinstallCommand(cd ../.. && pnpm install), because pnpm reads.npmrcfrom the current working directory upward (repo root won’t see this file). Consider either moving this setting to the repo root.npmrc, or changinginstallCommandto runpnpm installfromexamples/app-host(or passing--config.node-linker=hoisted) so the setting is actually applied during install.