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?

turbo repoで環境変数の参照設定がめんどくさくなってきたとき

Posted at

turbo repoではタスク実行時に参照する環境変数を、turbo.jsonに記載することで厳格に管理することができます。

環境変数を厳格に管理できるので、素晴らしい機能だと思います。
ただ、他で厳格に環境変数を管理できてたいたら二重管理だなと思う瞬間も人によってはいると思います。
そんな時に以下のコマンドを使うと、turborepoでの環境変数管理を無視できます。

turbo run build --env-mode=loose

optionで--emv-mode=looseを設定するだけです。

これをするとタスクごとの環境変数の管理ができなくなるので注意が必要ですが、そんなものは必要ないという状況では上記を実行してもいいかなと思います。

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?