This commit is contained in:
@@ -9,17 +9,17 @@ export async function buildRestaurantMetadata(name: string): Promise<Metadata> {
|
||||
try {
|
||||
const restaurant = await getRestaurant(name);
|
||||
const title = restaurant.seoTitle || restaurant.name;
|
||||
const logo = restaurant.logo;
|
||||
// Restaurant logo disabled – using static PWA icons (logo192.png / logo512.png)
|
||||
// const logo = restaurant.logo;
|
||||
// if (logo && logo.trim() !== "") {
|
||||
// iconUrl = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=192`;
|
||||
// icon192Url = iconUrl;
|
||||
// icon512Url = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=512`;
|
||||
// }
|
||||
|
||||
let iconUrl = defaultIcon;
|
||||
let icon192Url = defaultIcon;
|
||||
let icon512Url = defaultIcon512;
|
||||
|
||||
if (logo && logo.trim() !== "") {
|
||||
iconUrl = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=192`;
|
||||
icon192Url = iconUrl;
|
||||
icon512Url = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=512`;
|
||||
}
|
||||
const iconUrl = defaultIcon;
|
||||
const icon192Url = defaultIcon;
|
||||
const icon512Url = defaultIcon512;
|
||||
|
||||
return {
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user