Skip to content

Commit

Permalink
🧹 Use turbo strict environment mode (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Feb 5, 2024
1 parent 253c79e commit e15f108
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,12 @@ If running into issues with failing deployment transactions when running the tes
```bash
pnpm clean
```

### Problems with missing environment variables

If running into issues with missing environment variables when running any of the commands that rely on `turbo` (e.g. `build` or `test`), make sure that these are either:

- Specified as environment variables that have an effect on build output - [env](https://turbo.build/repo/docs/reference/configuration#env) in `turbo.json`
- Specified as _global_ environment variables that have an effect on build output - [globalEnv](https://turbo.build/repo/docs/reference/configuration#globalenv)
- Specified as environment variables that don't have an effect on build output - [passThroughEnv](https://turbo.build/repo/docs/reference/configuration#passthroughenv)
- Specified as _global_ environment variables that don't have an effect on build output - [globalPassThroughEnv](https://turbo.build/repo/docs/reference/configuration#globalpassthroughenv)
11 changes: 10 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@
"outputs": []
}
},
"globalDependencies": ["tsconfig.json"]
"globalDependencies": ["tsconfig.json"],
"globalPassThroughEnv": [
"LZ_ENABLE_EXPERIMENTAL_TASK_LZ_DEPLOY",
"LZ_ENABLE_EXPERIMENTAL_TASK_LZ_OAPP_CONFIG_INIT",
"MNEMONIC",
"NETWORK_URL_VENGABOYS",
"NETWORK_URL_BRITNEY",
"NETWORK_URL_TANGO",
"CI"
]
}

0 comments on commit e15f108

Please sign in to comment.