Skip to content

FUNCH_API_URL を任意の環境変数にし、未設定でも起動できるようにする - #56

Merged
kantacky merged 1 commit into
mainfrom
feature/optional-funch-api-url
Sep 20, 2026
Merged

kantacky merged 1 commit into
mainfrom
feature/optional-funch-api-url

Conversation

@kantacky

Copy link
Copy Markdown
Member

変更点

  • FUNCH_API_URL 未設定時は Funch クライアントを nil とし、両 BFF が起動できるようにした
  • app-bff-api: Funch クライアントが nil の場合は funch の service を注入せず、警告ログを出す。メニュー取得は errFunchServiceNotConfigured を返す
  • admin-bff-api: funchClientnil でも panic せず、メニュー取得時に 503 を返す

🤖 Generated with Claude Code

https://claude.ai/code/session_01FC7zWWV1MNFkNd8Q7woc6U

FUNCH_API_URL を削除しても BFF が起動できるよう、未設定時は Funch クライアントを nil とした。
app-bff-api は nil の場合に funch の service を注入せず警告ログを出し、
admin-bff-api は funchClient が nil でも panic せず、メニュー取得時に 503 を返す。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FC7zWWV1MNFkNd8Q7woc6U
@kantacky
kantacky added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit aca94b5 Sep 20, 2026
16 checks passed
@kantacky
kantacky deleted the feature/optional-funch-api-url branch September 20, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants