Skip to content

Commit 03ce5d9

Browse files
committed
trust it to be string
1 parent 354bdc4 commit 03ce5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function getStaticAssetRouteCode(
7676
resourcePath: string,
7777
fileBaseName: string
7878
) {
79-
resourcePath &&= path.posix.normalize(resourcePath)
79+
resourcePath = path.posix.normalize(resourcePath)
8080

8181
const cache =
8282
fileBaseName === 'favicon'

0 commit comments

Comments
 (0)