Skip to content

Commit bdadaf0

Browse files
committed
stop including basePath in urlPrefix
1 parent 88105c4 commit bdadaf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export function getWebpackPluginOptions(
487487
const isWebpack5 = webpack.version.startsWith('5');
488488
const isServerless = userNextConfig.target === 'experimental-serverless-trace';
489489
const hasSentryProperties = fs.existsSync(path.resolve(projectDir, 'sentry.properties'));
490-
const urlPrefix = userNextConfig.basePath ? `~${userNextConfig.basePath}/_next` : '~/_next';
490+
const urlPrefix = '~/_next';
491491

492492
const serverInclude = isServerless
493493
? [{ paths: [`${distDirAbsPath}/serverless/`], urlPrefix: `${urlPrefix}/serverless` }]

0 commit comments

Comments
 (0)