Repository navigation
refactor: server.js をやめて adapter-node 標準のサーバーに戻す - #187
Merged
Merged
Conversation
#183 で sass と一緒に sirv が消え、server.js が /_app/immutable/* に 応答しなくなっていた。そのため app.css を含むアセットが読み込まれず、 表示が崩れていた。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FPFCo16TPsUrao9sVBUyi
|
Claude finished @5ym's task in 15s —— View job レビュー結果問題なしです。
(要確認) 私は実行環境で本番のビルドやコンテナを動かしていません。マージ前に、デプロイ後の |
#183 で sirv が消えて server.js が /_app/immutable/* に応答しなくなり、 CSS などが読み込まれず表示が崩れていた。 直すにあたって、ビルドをまたいでアセットを共有する仕組み自体をやめる。 入れ替え中のごく短い間に古いチャンクが 404 になることは許容し、 SvelteKit の再読み込みと +layout.svelte の preloadError 処理に任せる。 - server.js と docker-entrypoint.sh を削除し、build/index.js で起動する - 共有ボリューム xool-assets (PVC とマウント) を削除する - SHUTDOWN_TIMEOUT は adapter-node の index.js がそのまま読む Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FPFCo16TPsUrao9sVBUyi
|
Claude finished @5ym's task in 33s —— View job レビュー結果最新コミット (b289269) で内容が変わっていたため、現状の差分 ( 1. PR 説明が現状とずれています
2. ハングの原因は解消される見込みです
3. 要確認: ローリング更新中の旧チャンク 404
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.
概要
#183 で sass と一緒に
sirvが消え、server.jsが/_app/immutable/*へのリクエストに応答しなくなっていました(ハングする)。そのため Blades を含むapp.cssなどが読み込まれず、本番の表示が崩れていました。sirv を戻すのではなく、server.js と共有ボリュームの仕組みごとやめて adapter-node 標準に戻します。
変更
server.js・docker-entrypoint.shを削除し、CMD [ "build/index.js" ]に戻すxool-assets(PVC とマウント)を削除。ArgoCD の prune で PVC も消えるSHUTDOWN_TIMEOUTは adapter-node のindex.jsが読むので、deployment のコメントだけ直すトレードオフ
ローリングアップデート中のごく短い間、新旧 Pod の間でアセットが 404 になることがある。これは SvelteKit の再読み込みと
+layout.svelteの preloadError 処理に任せる。🤖 Generated with Claude Code
https://claude.ai/code/session_014FPFCo16TPsUrao9sVBUyi