Skip to content

Commit

Permalink
remove warning of asset-prefix in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Aug 8, 2024
1 parent abf12f8 commit 2b8ccf7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,16 +1069,6 @@ export default async function loadConfig(
}
}

if (
phase === PHASE_DEVELOPMENT_SERVER &&
URL.canParse(userConfig.assetPrefix ?? '')
) {
curLog.warn(
`Absolute URL assetPrefix "${userConfig.assetPrefix}" may disrupt development HMR.\n` +
'See more info here https://nextjs.org/docs/app/api-reference/next-config-js/assetPrefix'
)
}

if (userConfig.target && userConfig.target !== 'server') {
throw new Error(
`The "target" property is no longer supported in ${configFileName}.\n` +
Expand Down

0 comments on commit 2b8ccf7

Please sign in to comment.