We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70501ec commit 26c1128Copy full SHA for 26c1128
1 file changed
src/adapter/npm-link-workaround.ts
@@ -10,7 +10,7 @@ const WORKAROUND_REL_DIR = '.netlify/npm-link-workaround'
10
// this is intentionally sync function so it works in every context without worrying about async
11
export const workaroundNpmLinkOutsideOfProjectRoot = (filePath: string) => {
12
const cwd = process.cwd()
13
- if (relative(cwd, filePath).startsWith('..')) {
+ if (process.env.NETLIFY_NEXT_EXPERIMENTAL_ADAPTER && relative(cwd, filePath).startsWith('..')) {
14
const workaroundDir = join(cwd, WORKAROUND_REL_DIR)
15
16
mkdirSync(workaroundDir, { recursive: true })
0 commit comments