This commit is contained in:
payacom
2026-08-05 15:12:39 +03:30
parent 89320d57b9
commit 491040f752
27 changed files with 1732 additions and 32 deletions

View File

@@ -35,6 +35,24 @@ const nextConfig = {
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'app.modstagram.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'panel.modstagram.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'cdn.modstagram.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'api.qrserver.com',
@@ -54,7 +72,31 @@ const nextConfig = {
minimumCacheTTL: 31536000,
},
// ۳. فقط وبلاگ — API/storage از Route Handler پروکسی می‌شوند
// ۳. ریدایرکت دائمی دامنه قدیمی .ir به دامنه اصلی .com
async redirects() {
return [
{
source: '/:path*',
has: [{ type: 'host', value: 'modstagram.ir' }],
destination: 'https://modstagram.com/:path*',
permanent: true,
},
{
source: '/:path*',
has: [{ type: 'host', value: 'www.modstagram.ir' }],
destination: 'https://modstagram.com/:path*',
permanent: true,
},
{
source: '/:path*',
has: [{ type: 'host', value: 'app.modstagram.ir' }],
destination: 'https://modstagram.com/:path*',
permanent: true,
},
];
},
// ۴. فقط وبلاگ — API/storage از Route Handler پروکسی می‌شوند
async rewrites() {
return [
{
@@ -67,7 +109,7 @@ const nextConfig = {
},
];
},
// ۴. تنظیمات هدرها
// ۵. تنظیمات هدرها
async headers() {
return [
{