Skip to content

追加: Per-User Database用の環境変数を定義#428

Merged
gn-t-k merged 2 commits intomainfrom
infra/per-user-database-env
Jan 1, 2026
Merged

追加: Per-User Database用の環境変数を定義#428
gn-t-k merged 2 commits intomainfrom
infra/per-user-database-env

Conversation

@gn-t-k
Copy link
Owner

@gn-t-k gn-t-k commented Dec 29, 2025

概要

Per-User Database機能に必要な環境変数の定義を追加します。

この変更は Per-User Database 実装の前提となるインフラ準備です。

この変更による影響

  • 開発者への影響: 新しい環境変数を .env に設定する必要があります

    • TURSO_PLATFORM_API_TOKEN: Turso Platform API認証用トークン
    • TURSO_ORGANIZATION: Turso組織名
    • TURSO_PER_USER_DATABASE_PREFIX: Per-User DB名のプレフィックス
    • TURSO_TOKEN_ENCRYPTION_KEY: DBトークン暗号化用キー(256bit hex形式)
  • ユーザーへの影響: なし(機能追加の準備のみ)

CIでチェックできなかった項目

  • 本番環境での環境変数設定(Vercel)

補足

  • GitHubのRepository secretsに環境変数の登録が必要
  • Vercelの環境変数設定に登録が必要

🤖 Generated with Claude Code

Per-User Database機能に必要な環境変数を追加:
- TURSO_PLATFORM_API_TOKEN: Turso Platform API認証用
- TURSO_ORGANIZATION: Turso組織名
- TURSO_PER_USER_DATABASE_PREFIX: DB名プレフィックス
- TURSO_TOKEN_ENCRYPTION_KEY: トークン暗号化キー(256bit hex)

また、開発環境用ローカルDBディレクトリを.gitignoreに追加。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added the infra label Dec 29, 2025
@github-actions
Copy link
Contributor

🚀 Preview Environment Ready

✅ プレビュー環境のセットアップが完了しました!

🗄️ Database

Name: next-lift-preview-pr428-auth
URL: libsql://next-lift-preview-pr428-auth-gn-t-k.aws-ap-northeast-1.turso.io

🌐 Deployment

Preview URL: https://next-lift-cvnlhtpse-gntks-projects.vercel.app

⚠️ このデータベースとデプロイメントはPRがクローズされると自動的に削除されます。

Turboのビルドキャッシュが環境変数の変更を検知できるよう、
passThroughEnvに以下を追加:
- TURSO_PLATFORM_API_TOKEN
- TURSO_ORGANIZATION
- TURSO_PER_USER_DATABASE_PREFIX
- TURSO_TOKEN_ENCRYPTION_KEY

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🚀 Preview Environment Ready

✅ プレビュー環境のセットアップが完了しました!

🗄️ Database

Name: next-lift-preview-pr428-auth
URL: libsql://next-lift-preview-pr428-auth-gn-t-k.aws-ap-northeast-1.turso.io

🌐 Deployment

Preview URL: https://next-lift-e2zbk6wp3-gntks-projects.vercel.app

⚠️ このデータベースとデプロイメントはPRがクローズされると自動的に削除されます。

@gn-t-k gn-t-k merged commit d666c95 into main Jan 1, 2026
4 checks passed
@gn-t-k gn-t-k deleted the infra/per-user-database-env branch January 1, 2026 03:33
@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2026

🗑️ Preview Environment Cleaned Up

✅ プレビュー環境をクリーンアップしました!

Database Name: next-lift-preview-pr428-auth

PRがクローズされたため、関連するデータベースとVercel環境変数を自動的に削除しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant