Skip to content

Commit 2cfadef

Browse files
authored
fix(router-generator): use the tmpDir when genearting a temporary filename (#4882)
1 parent 8efac91 commit 2cfadef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router-generator/src/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ ${acc.routeTree.map((child) => `${child.variableName}${exportName}: typeof ${get
10901090
mkdirSync(this.config.tmpDir, { recursive: true })
10911091
this.sessionId = crypto.randomBytes(4).toString('hex')
10921092
}
1093-
return `${this.sessionId}-${hash}`
1093+
return path.join(this.config.tmpDir, `${this.sessionId}-${hash}`)
10941094
}
10951095

10961096
private async isRouteFileCacheFresh(node: RouteNode): Promise<

0 commit comments

Comments
 (0)