File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " trigger.dev " : patch
3
+ ---
4
+
5
+ Make the default of legacyDevProcessCwdBehaviour true instead of false (prevents breaking prismaExtension)
Original file line number Diff line number Diff line change @@ -358,10 +358,12 @@ class DevSupervisor implements WorkerRuntime {
358
358
config : this . options . config ,
359
359
} ) ;
360
360
361
- const cwd =
362
- this . options . config . legacyDevProcessCwdBehaviour === true
363
- ? undefined
364
- : worker . build . outputPath ;
361
+ const legacyDevProcessCwdBehaviour =
362
+ typeof this . options . config . legacyDevProcessCwdBehaviour === "boolean"
363
+ ? this . options . config . legacyDevProcessCwdBehaviour
364
+ : true ;
365
+
366
+ const cwd = legacyDevProcessCwdBehaviour === true ? undefined : worker . build . outputPath ;
365
367
366
368
//new run
367
369
runController = new DevRunController ( {
Original file line number Diff line number Diff line change @@ -280,10 +280,10 @@ export type TriggerConfig = {
280
280
processKeepAlive ?: ProcessKeepAlive ;
281
281
282
282
/**
283
- * @default false
283
+ * @default true
284
284
* @description If set to true when running the dev CLI, the current working directory will be set to where the command is run from.
285
285
*
286
- * The new default (when this flag isn't passed) is to set the current working directory to the build directory.
286
+ * Setting this to `false` will set the current working directory to the build directory.
287
287
* This more closely matches the behavior of the CLI when running in production and is highly recommended.
288
288
*
289
289
* This impacts the value of process.cwd() in your task code.
You can’t perform that action at this time.
0 commit comments