66const nextConfig = {
77 // 🔹 فعالکردن سورسمپ در پروداکشن (برای رفع هشدار Missing source maps)
88 productionBrowserSourceMaps : true ,
9- output : ' standalone' ,
9+ output : " standalone" ,
1010 logging : {
1111 fetches : {
1212 fullUrl : true ,
@@ -15,19 +15,19 @@ const nextConfig = {
1515 async redirects ( ) {
1616 return [
1717 {
18- source : '/' ,
19- destination : ' /fa' ,
18+ source : "/" ,
19+ destination : " /fa" ,
2020 permanent : true ,
2121 basePath : false ,
2222 } ,
2323 {
24- source : ' /:lang/citizen' ,
25- destination : ' /:lang/citizens' ,
24+ source : " /:lang/citizen" ,
25+ destination : " /:lang/citizens" ,
2626 permanent : true ,
2727 } ,
2828 {
29- source : ' /:lang/citizen/:id' ,
30- destination : ' /:lang/citizens/:id' ,
29+ source : " /:lang/citizen/:id" ,
30+ destination : " /:lang/citizens/:id" ,
3131 permanent : true ,
3232 } ,
3333 ] ;
@@ -37,21 +37,21 @@ const nextConfig = {
3737 return [
3838 {
3939 // 📌 کش برای تصاویر (یکساله + immutable)
40- source : ' /uploads/calendars/:path*' ,
40+ source : " /uploads/calendars/:path*" ,
4141 headers : [
4242 {
43- key : ' Cache-Control' ,
44- value : ' public, max-age=31536000, immutable' ,
43+ key : " Cache-Control" ,
44+ value : " public, max-age=31536000, immutable" ,
4545 } ,
4646 ] ,
4747 } ,
4848 {
4949 // 📌 کش برای فونتها
50- source : ' /fonts/:path*' ,
50+ source : " /fonts/:path*" ,
5151 headers : [
5252 {
53- key : ' Cache-Control' ,
54- value : ' public, max-age=31536000, immutable' ,
53+ key : " Cache-Control" ,
54+ value : " public, max-age=31536000, immutable" ,
5555 } ,
5656 ] ,
5757 } ,
@@ -68,7 +68,7 @@ const nextConfig = {
6868 // 🔹 پشتیبانی از فایلهای SVG
6969 config . module . rules . push ( {
7070 test : / \. s v g $ / ,
71- use : [ { loader : ' @svgr/webpack' , options : { icon : true } } ] ,
71+ use : [ { loader : " @svgr/webpack" , options : { icon : true } } ] ,
7272 } ) ;
7373
7474 return config ;
@@ -78,28 +78,43 @@ const nextConfig = {
7878 deviceSizes : [ 320 , 480 , 640 , 768 , 1024 , 1280 , 1536 ] ,
7979 imageSizes : [ 16 , 32 , 64 , 128 , 256 , 384 , 512 , 540 , 600 ] ,
8080 qualities : [ 25 , 50 , 75 ] ,
81- formats : [ ' image/avif' , ' image/webp' ] ,
81+ formats : [ " image/avif" , " image/webp" ] ,
8282 remotePatterns : [
83- { protocol : 'https' , hostname : 'dl.qzparadise.ir' } ,
84- { protocol : 'https' , hostname : 'api.metarang.com' } ,
85- { protocol : 'https' , hostname : 'api.rgb.irpsc.com' } ,
86- { protocol : 'https' , hostname : 'admin.metarang.com' } ,
87- { protocol : 'https' , hostname : 'admin.rgb.irpsc.com' } ,
88- { protocol : 'https' , hostname : 'dev-nextjs.metarang.com' } ,
89- { protocol : 'https' , hostname : '*.irpsc.com' } ,
90- { protocol : 'https' , hostname : 'rgb.irpsc.com' } ,
91- { protocol : 'http' , hostname : 'rgb.irpsc.com' } ,
92- { protocol : 'https' , hostname : 'metarang.com' } ,
93- { protocol : 'http' , hostname : 'localhost' } ,
94- { protocol : 'https' , hostname : 'irpsc.com' } ,
95- { protocol : 'https' , hostname : 'frdevelop2.irpsc.com' } ,
96- { protocol : 'https' , hostname : 'supabase.com' } ,
97- { protocol : 'https' , hostname : '3d.irpsc.com' } ,
98- { protocol : 'https' , hostname : 'metarang.com' } ,
83+ { protocol : "https" , hostname : "metarang.com" , pathname : "/**" , } ,
84+ { protocol : "https" , hostname : "api.metarang.com" , pathname : "/**" , } ,
85+ { protocol : "http" , hostname : "api.metarang.com" , pathname : "/**" , } ,
86+ {
87+ protocol : "https" ,
88+ hostname : "admin.metarang.com" ,
89+ pathname : "/**" ,
90+ } ,
91+ {
92+ protocol : "http" ,
93+ hostname : "admin.metarang.com" ,
94+ pathname : "/**" ,
95+ } ,
96+ { protocol : "https" , hostname : "admin.rgb.irpsc.com" } ,
97+ { protocol : "https" , hostname : "api.rgb.irpsc.com" , pathname : "/**" , } ,
98+ { protocol : "https" , hostname : "dev-nextjs.metarang.com" } ,
99+ {
100+ protocol : "https" ,
101+ hostname : "**.irpsc.com" ,
102+ } ,
103+ { protocol : "https" , hostname : "rgb.irpsc.com" } ,
104+ { protocol : "http" , hostname : "rgb.irpsc.com" } ,
105+ { protocol : "http" , hostname : "localhost" } ,
106+ {
107+ protocol : "https" ,
108+ hostname : "**.irpsc.com" ,
109+ pathname : "/**" ,
110+ } ,
111+ { protocol : "https" , hostname : "frdevelop2.irpsc.com" } ,
112+ { protocol : "https" , hostname : "supabase.com" } ,
113+ { protocol : "https" , hostname : "3d.irpsc.com" } ,
114+ { protocol : "https" , hostname : "dl.qzparadise.ir" } ,
99115
100116 ] ,
101117 } ,
102-
103118} ;
104119
105- module . exports = nextConfig ;
120+ module . exports = nextConfig ;
0 commit comments