Fixed the example Job trigger file import path when using Pages Router with no path alias
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/cli": patch
|
||||
---
|
||||
|
||||
Fixed the example Job trigger file import path when using Pages Router with no path alias
|
||||
@@ -567,7 +567,7 @@ async function createTriggerPageRoute(
|
||||
const { tsconfig } = await parse(tsConfigPath);
|
||||
|
||||
const pathAlias = getPathAlias(tsconfig, usesSrcDir);
|
||||
const routePathPrefix = pathAlias ? pathAlias + "/" : "../..";
|
||||
const routePathPrefix = pathAlias ? pathAlias + "/" : "../../";
|
||||
|
||||
const extension = isTypescriptProject ? ".ts" : ".js";
|
||||
const triggerFileName = `trigger${extension}`;
|
||||
|
||||
Reference in New Issue
Block a user