We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e347389 commit b62df73Copy full SHA for b62df73
.changeset/shaggy-adults-return.md
@@ -0,0 +1,5 @@
1
+---
2
+"@trigger.dev/cli": patch
3
4
+
5
+Fixed the example Job trigger file import path when using Pages Router with no path alias
packages/cli/src/commands/init.ts
@@ -567,7 +567,7 @@ async function createTriggerPageRoute(
567
const { tsconfig } = await parse(tsConfigPath);
568
569
const pathAlias = getPathAlias(tsconfig, usesSrcDir);
570
- const routePathPrefix = pathAlias ? pathAlias + "/" : "../..";
+ const routePathPrefix = pathAlias ? pathAlias + "/" : "../../";
571
572
const extension = isTypescriptProject ? ".ts" : ".js";
573
const triggerFileName = `trigger${extension}`;
0 commit comments