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 [