From 64ce2cd5c7f3ff2b925f1ea885cce5c10da5e4ae Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 8 Nov 2021 11:23:35 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Steven --- packages/next/build/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/utils.ts b/packages/next/build/utils.ts index c1b113b495bc4..4eaef3e0cf7a9 100644 --- a/packages/next/build/utils.ts +++ b/packages/next/build/utils.ts @@ -1214,7 +1214,7 @@ export async function copyTracedFiles( await handleTraceFiles(path.join(distDir, 'next-server.js.nft.json')) const serverOutputPath = path.join( outputPath, - path.relative(tracingRoot || dir, dir), + path.relative(tracingRoot, dir), 'server.js' ) await fs.writeFile(