Skip to content

Commit

Permalink
docs: Fixed case of variable (#1269)
Browse files Browse the repository at this point in the history
Fixed case of 'host' variable in example on 'Server Actions, Metadata &
Route Handlers' page.
Once the variable was written in uppercase, once in lowercase. I changed
the uppercase variant to lowercase, since that is how the 'host'
variable in another example is spelled.
  • Loading branch information
dave-meyer authored Aug 20, 2024
1 parent ed4681f commit 45668b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
locale: (typeof locales)[number]
) {
const pathname = getPathname({locale, href: key});
return `${HOST}/${locale}${pathname === '/' ? '' : pathname}`;
return `${host}/${locale}${pathname === '/' ? '' : pathname}`;
}

return keys.map((key) => ({
Expand Down

0 comments on commit 45668b0

Please sign in to comment.