0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ローカルのSupabaseでStripeのシークレットキーを自動で設定する

Last updated at Posted at 2025-01-17

シードファイルでvaultにstripe_wrapper_api_key_idの名前で追加する。

supabase/seed.sql
SELECT vault.create_secret(
    '{ここにシークレットキー}', 
    '{stripe wrapperのname}_api_key_id'
);

gitでは管理しないのが定石(多分)
他のシードファイルと分けたいときはこの辺を参照する。
(デフォルトでseed.sqlが指定されているので既存のコンフィグみたらなんとなく追加できるはず)

db resetの度に設定するのはやめよう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?