Repository navigation
fix(frontend): Vercel のビルド Node を 22.x に固定 - #607
Merged
Merged
Conversation
engines.node が >=20 だと Vercel は最新の Node 26 を選び、 better-sqlite3@11.10.0 (identity/mcp の devDependency) のネイティブビルドが 失敗して pnpm install が落ちる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Vercel の自動デプロイで、
pnpm installの途中にbetter-sqlite3のビルドが失敗するようになりました。この PR では、Vercel がビルドに使う Node のバージョンを 22.x に固定します。原因
pkgs/frontend/package.jsonのengines.nodeが>=20.0.0になっています。Vercel はこの条件を満たす最新の Node を選ぶため、現在は Node 26 が使われています。better-sqlite3@11.10.0には Node 26 向けのビルド済みバイナリがありません。代わりにソースからコンパイルしようとして、そこで失敗しています。better-sqlite3は@toban/identityと@toban/mcpの devDependency です。pnpm installはワークスペース全体をインストールするので、frontend のビルドでも一緒にインストールされます。変更内容
pkgs/frontend/package.jsonのengines.nodeを22.xにしました。ローカル開発で使っているバージョンに合わせています。🤖 Generated with Claude Code