From 8e759134419307d476e0450526e3cd918e2f7dab Mon Sep 17 00:00:00 2001 From: payacom <59262811+payacom@users.noreply.github.com> Date: Sat, 11 Jul 2026 18:05:22 +0330 Subject: [PATCH] pic --- next.config.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/next.config.ts b/next.config.ts index 2d34fc9..b5f4120 100644 --- a/next.config.ts +++ b/next.config.ts @@ -10,9 +10,6 @@ const nextConfig = { // ۲. تنظیمات تصاویر images: { - // بهینه‌ساز سمت سرور Next روی سرور برای تصاویر پروکسی‌شده خطا می‌داد؛ - // با این تنظیم تصاویر مستقیم (مثل ویدیوها) در مرورگر لود می‌شوند. - unoptimized: true, remotePatterns: [ { protocol: 'https', @@ -32,6 +29,12 @@ const nextConfig = { port: '', pathname: '/**', }, + { + protocol: 'https', + hostname: 'api.modstagram.com', + port: '', + pathname: '/**', + }, { protocol: 'http', hostname: 'localhost', @@ -58,9 +61,6 @@ const nextConfig = { }, ]; }, -server: { - port: 3004, - }, // ۴. تنظیمات هدرها async headers() { return [