@@ -162,21 +162,21 @@ module.exports = (phase, { defaultConfig }) => {
162162 }
163163
164164 return [
165+ // All primary redirects
166+ ...redirects . flatMap ( ( [ source , destination , permanent ] ) =>
167+ createRedirect ( source , destination , permanent )
168+ ) ,
169+
165170 // Custom locale aliases redirects
166- { source : "/no/:path*" , destination : "/nb/:path*" , permanent : true } ,
171+ { source : "/no/:path*" , destination : "/nb/:path*/ " , permanent : true } ,
167172
168173 // Deprecated locale redirects
174+ { source : "/ph" , destination : "/" , permanent : true } ,
175+ { source : "/ph/:path*" , destination : "/:path*/" , permanent : true } ,
169176 { source : "/pcm" , destination : "/" , permanent : false } ,
170- { source : "/pcm/:path*" , destination : "/:path*" , permanent : false } ,
177+ { source : "/pcm/:path*" , destination : "/:path*/ " , permanent : false } ,
171178 { source : "/fil" , destination : "/" , permanent : false } ,
172- { source : "/fil/:path*" , destination : "/:path*" , permanent : false } ,
173- { source : "/ph" , destination : "/" , permanent : false } ,
174- { source : "/ph/:path*" , destination : "/:path*" , permanent : false } ,
175-
176- // All primary redirects
177- ...redirects . flatMap ( ( [ source , destination , permanent ] ) =>
178- createRedirect ( source , destination , permanent )
179- ) ,
179+ { source : "/fil/:path*" , destination : "/:path*/" , permanent : false } ,
180180 ]
181181 } ,
182182 }
0 commit comments