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 5e9f2af commit 222c189Copy full SHA for 222c189
src/build/plugin-context.ts
@@ -110,7 +110,9 @@ export class PluginContext {
110
// because parts of application would be outside of "standalone" directory
111
// - if it's not marked as external it will be included in next.js produced chunks
112
113
- const depth = toPosixPath(this.relativeAppDir).split(posixSep).length
+ const depth =
114
+ this.relativeAppDir === '' ? 0 : toPosixPath(this.relativeAppDir).split(posixSep).length
115
+
116
const computedOutputFileTracingRoot = resolve(
117
this.requiredServerFiles.appDir,
118
...Array.from<string>({ length: depth }).fill('..'),
0 commit comments