We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
basePath
urlPrefix
1 parent 88105c4 commit bdadaf0Copy full SHA for bdadaf0
packages/nextjs/src/config/webpack.ts
@@ -487,7 +487,7 @@ export function getWebpackPluginOptions(
487
const isWebpack5 = webpack.version.startsWith('5');
488
const isServerless = userNextConfig.target === 'experimental-serverless-trace';
489
const hasSentryProperties = fs.existsSync(path.resolve(projectDir, 'sentry.properties'));
490
- const urlPrefix = userNextConfig.basePath ? `~${userNextConfig.basePath}/_next` : '~/_next';
+ const urlPrefix = '~/_next';
491
492
const serverInclude = isServerless
493
? [{ paths: [`${distDirAbsPath}/serverless/`], urlPrefix: `${urlPrefix}/serverless` }]
0 commit comments