teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

バージョン管理に含めてもよい開発中にしか使わない接続文字列であるならばの話を追記

2024/10/23 08:05

投稿

juner
juner

スコア754

answer CHANGED
@@ -6,4 +6,6 @@
6
6
  とありますが、私の場合、開発中は シークレットマネージャ経由をお勧めしますが、 とりあえず実行時や プロダクション環境に挿入するなら環境変数をおすすめします。
7
7
  構成の中で最後に挿入されるものであり、上書きが確実だからです。
8
8
 
9
- https://learn.microsoft.com/ja-jp/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0#default-host-configuration-sources
9
+ https://learn.microsoft.com/ja-jp/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0#default-host-configuration-sources
10
+
11
+ ※ もしも開発中にしか使わないのでバージョン管理に含めてもよい接続文字列であるならば appsettings.Development.json に含めるのが安全です。