The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord

getCanonicalUrl allow infinite props

Changed files
+2 -2
utils
+2 -2
utils/urls.ts
··· 2 2 return process.env.NEXT_PUBLIC_BASE_URL ?? "http://localhost:3000"; 3 3 }; 4 4 5 - export const getCanonicalUrl = (page: string, id: string) => { 6 - return `${getBaseUrl()}/${page}/${id}`; 5 + export const getCanonicalUrl = (...pages: string[]) => { 6 + return `${getBaseUrl()}/${pages.join("/")}`; 7 7 };