Skip to content

Commit 820fd16

Browse files
committed
fix: fallback outputFileTracingRoot to cwd
1 parent e05bef9 commit 820fd16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build/plugin-context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ export class PluginContext {
9191
return (
9292
this.requiredServerFiles.config.outputFileTracingRoot ??
9393
// fallback for older Next.js versions that don't have outputFileTracingRoot in the config, but had it in config.experimental
94-
this.requiredServerFiles.config.experimental.outputFileTracingRoot
94+
this.requiredServerFiles.config.experimental.outputFileTracingRoot ??
95+
process.cwd()
9596
)
9697
}
9798

0 commit comments

Comments
 (0)