Repository navigation
refactor: adapter-node から公式の adapter-bun に切り替える - #189
Merged
Merged
Conversation
実行環境はもともと Bun なので、Node 互換層を通さず Bun.serve で 直接動かす。静的ファイルも Bun のネイティブルートで配信される。 - adapter-bun はビルドを Bun で実行する必要があるため、build を `bun --bun vite build` にする - 出力は今までと同じ build/index.js なので Dockerfile はそのまま - PROTOCOL_HEADER / HOST_HEADER / BODY_SIZE_LIMIT / SHUTDOWN_TIMEOUT は adapter-bun も同じ名前で読む Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FPFCo16TPsUrao9sVBUyi
|
Claude finished @5ym's task in 20s —— View job レビュー結果差分(4ファイル)を確認しました。ブロッカーになる問題は見つかりませんでした。以下は要確認の点です。 問題なし と判断した点
要確認
テスト |
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.
概要
実行環境はもともと Bun(
oven/bunイメージ、bun:sqlite)なので、adapter-node を Bun の Node 互換層の上で動かすのをやめ、SvelteKit 公式の@sveltejs/adapter-bun(1.0.0)に切り替えます。変更
@sveltejs/adapter-nodeを@sveltejs/adapter-bunに置き換え(package.json/bun.lock/vite.config.ts)buildをbun --bun vite buildにしたbuild/index.jsなので、Dockerfile のCMDはそのままPROTOCOL_HEADER/HOST_HEADER/BODY_SIZE_LIMIT/SHUTDOWN_TIMEOUTは adapter-bun も同じ名前で読むので、deployment はコメントだけ直した補足
bun.lockは手で直した。追加の依存bun-types@^1.3.14は既存のbun-types@1.4.3で満たされている。integrity は npm registry の値🤖 Generated with Claude Code
https://claude.ai/code/session_014FPFCo16TPsUrao9sVBUyi