diff --git a/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts b/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts index f709ce018a9aa0..a3b71536555857 100644 --- a/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts +++ b/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts @@ -76,6 +76,8 @@ async function getStaticAssetRouteCode( resourcePath: string, fileBaseName: string ) { + resourcePath = path.posix.normalize(resourcePath) + const cache = fileBaseName === 'favicon' ? 'public, max-age=0, must-revalidate'