Skip to content

Commit 02d56f2

Browse files
committed
fixup!
1 parent da587ef commit 02d56f2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎platforms/vercel/next.config.mjs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ export default {
1010
!process.env.NEXT_PUBLIC_BASE_URL && process.env.VERCEL_URL
1111
? { NEXT_PUBLIC_BASE_URL: `https://${process.env.VERCEL_URL}` }
1212
: {},
13+
// `NODE_OPTIONS=--conditions=vercel` (see `vercel.json`) only applies to
14+
// Node's own resolver, which is what loads this file. Turbopack resolves
15+
// `#platform/*` with its own set of conditions and, unlike webpack, exposes
16+
// no way to extend them (i think).
17+
//
18+
// TODO(@avivkeller): File a bug with turbopack
19+
turbopack: {
20+
resolveAlias: {
21+
'#platform/analytics': '@node-core/platform-vercel/analytics.tsx',
22+
'#platform/instrumentation':
23+
'@node-core/platform-vercel/instrumentation.ts',
24+
'#platform/shiki.mjs': '@node-core/platform-vercel/shiki.mjs',
25+
},
26+
},
1327
};

0 commit comments

Comments
 (0)