chore: migrate to payload / nextjs
This commit is contained in:
18
redirects.ts
Normal file
18
redirects.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { NextConfig } from 'next'
|
||||
|
||||
export const redirects: NextConfig['redirects'] = async () => {
|
||||
const internetExplorerRedirect = {
|
||||
destination: '/ie-incompatible.html',
|
||||
has: [
|
||||
{
|
||||
type: 'header' as const,
|
||||
key: 'user-agent',
|
||||
value: '(.*Trident.*)', // all ie browsers
|
||||
},
|
||||
],
|
||||
permanent: false,
|
||||
source: '/:path((?!ie-incompatible.html$).*)', // all pages except the incompatibility page
|
||||
}
|
||||
|
||||
return [internetExplorerRedirect]
|
||||
}
|
||||
Reference in New Issue
Block a user