pic
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user