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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user