Unverified Commit 7fb4d270 authored by Preston Landers's avatar Preston Landers Committed by GitHub

Fix Windows path in route join (#48603) (#48779)

A change here: (#48202) 958150d1
Caused a URL to be joined with `path.join`, which on Windows inserts a backslash character. Changing to `path.posix.join` fixes this.

Breaks next build on Windows when paths like `favicon.ico` are in the source dir.

Fixes #48603
parent 5b609e26
...@@ -56,7 +56,7 @@ export function normalizeMetadataRoute(page: string) { ...@@ -56,7 +56,7 @@ export function normalizeMetadataRoute(page: string) {
page.startsWith('/manifest') || page.startsWith('/manifest') ||
isStaticMetadataFile isStaticMetadataFile
route = path.join( route = path.posix.join(
dir, dir,
`${baseName}${suffix ? `-${suffix}` : ''}${ext}`, `${baseName}${suffix ? `-${suffix}` : ''}${ext}`,
isSingleRoute ? '' : '[[...__metadata_id__]]', isSingleRoute ? '' : '[[...__metadata_id__]]',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment