20 lines
432 B
JavaScript
20 lines
432 B
JavaScript
const redirects = async () => {
|
|
return [
|
|
{
|
|
// internet explorer
|
|
destination: '/ie-incompatible.html',
|
|
has: [
|
|
{
|
|
type: 'header',
|
|
key: 'user-agent',
|
|
value: '(.*Trident.*)', // all ie browsers
|
|
},
|
|
],
|
|
permanent: false,
|
|
source: '/:path((?!ie-incompatible.html$).*)', // all pages except the incompatibility page
|
|
},
|
|
]
|
|
}
|
|
|
|
export default redirects
|