icon sharp

This commit is contained in:
hamid zarghami
2025-12-30 10:38:58 +03:30
parent 919c4ff568
commit ca53e15d49
5 changed files with 588 additions and 455 deletions
+6 -2
View File
@@ -17,15 +17,19 @@ export async function GET(
const icons = [];
if (logo && logo.trim() !== "") {
// استفاده از API route برای تبدیل لوگو به مربع
const logo192Url = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=192`;
const logo512Url = `/${name}/api/logo?url=${encodeURIComponent(logo)}&size=512`;
icons.push(
{
src: logo,
src: logo192Url,
sizes: "192x192",
type: "image/png",
purpose: "any",
},
{
src: logo,
src: logo512Url,
sizes: "512x512",
type: "image/png",
purpose: "any",