This commit is contained in:
payacom
2026-07-11 18:05:22 +03:30
parent 5dfbbdc33b
commit 8e75913441

View File

@@ -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 [