Skip to content

Commit

Permalink
use NEXT_PROJECT_ROOT_DIST
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Oct 6, 2023
1 parent 4d6c267 commit 678dc08
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ export default async function getBaseWebpackConfig(
// Alias the usage of next public APIs
[path.join(NEXT_PROJECT_ROOT, 'server')]:
'next/dist/esm/server/web/exports/index',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'client', 'link')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'client', 'link')]:
'next/dist/esm/client/link',
[path.join(
NEXT_PROJECT_ROOT,
Expand All @@ -833,28 +833,26 @@ export default async function getBaseWebpackConfig(
'lib',
'image-external'
)]: 'next/dist/esm/shared/lib/image-external',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'client', 'script')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'client', 'script')]:
'next/dist/esm/client/script',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'client', 'router')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'client', 'router')]:
'next/dist/esm/client/router',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'shared', 'lib', 'head')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'shared', 'lib', 'head')]:
'next/dist/esm/shared/lib/head',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'shared', 'lib', 'dynamic')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'shared', 'lib', 'dynamic')]:
'next/dist/esm/shared/lib/dynamic',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'pages', '_document')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'pages', '_document')]:
'next/dist/esm/pages/_document',
[path.join(NEXT_PROJECT_ROOT, 'dist', 'pages', '_app')]:
[path.join(NEXT_PROJECT_ROOT_DIST, 'pages', '_app')]:
'next/dist/esm/pages/_app',
[path.join(
NEXT_PROJECT_ROOT,
'dist',
NEXT_PROJECT_ROOT_DIST,
'client',
'components',
'navigation'
)]: 'next/dist/esm/client/components/navigation',
[path.join(
NEXT_PROJECT_ROOT,
'dist',
NEXT_PROJECT_ROOT_DIST,
'client',
'components',
'headers'
Expand Down

0 comments on commit 678dc08

Please sign in to comment.