From 03ce5d987eb903d8c178a3827c59d30e436f65b2 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Wed, 23 Oct 2024 10:38:50 +0900 Subject: [PATCH] trust it to be string --- .../src/build/webpack/loaders/next-metadata-route-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e72ad4089f2a6..a3b7153655585 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,7 +76,7 @@ async function getStaticAssetRouteCode( resourcePath: string, fileBaseName: string ) { - resourcePath &&= path.posix.normalize(resourcePath) + resourcePath = path.posix.normalize(resourcePath) const cache = fileBaseName === 'favicon'