fix(web-next): support USE_DEV_SEED=false and load root .env globally

- Add USE_DEV_SEED=false branch to bindAll dispatcher
- Use dotenv-cli to inject root .env into all Turbo tasks
- Add globalDependencies for .env cache invalidation
This commit is contained in:
danijel-lf
2026-05-26 14:13:31 +02:00
parent e734530ffe
commit d71e30bb3a
3 changed files with 11 additions and 5 deletions

View File

@@ -151,6 +151,10 @@ export async function bindAllDevSeed(): Promise<void> {
* (IRealtimeBroadcaster, IRealtimeHandlerRegistry) and pass them through.
*/
export async function bindAll(): Promise<void> {
if (process.env.USE_DEV_SEED === "false") {
await bindAllProduction();
return;
}
if (process.env.USE_DEV_SEED === "true") {
await bindAllDevSeed();
return;