We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e701a54 commit 9ba5f93Copy full SHA for 9ba5f93
1 file changed
src/app/(frontend)/(sitemaps)/posts-sitemap.xml/route.ts
@@ -44,10 +44,10 @@ const getPostsSitemap = unstable_cache(
44
? {
45
images: [
46
...((post.sourceImages as Media[]) || []).map((image) => ({
47
- loc: `${SITE_URL}${image.url}`,
+ loc: new URL(`${SITE_URL}${image.url}`),
48
})),
49
...((post.destinationImages as Media[]) || []).map((image) => ({
50
51
52
],
53
}
0 commit comments