Fix deployment
This commit is contained in:
+23
-22
@@ -2,28 +2,29 @@ import type { NextConfig } from 'next'
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
basePath: process.env.BASEPATH,
|
||||
redirects: async () => {
|
||||
return [
|
||||
{
|
||||
source: '/',
|
||||
destination: '/en/dashboards/overview',
|
||||
permanent: true,
|
||||
locale: false
|
||||
},
|
||||
{
|
||||
source: '/:lang(en|fr|ar)',
|
||||
destination: '/:lang/dashboards/overview',
|
||||
permanent: true,
|
||||
locale: false
|
||||
},
|
||||
{
|
||||
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
|
||||
destination: '/en/:path',
|
||||
permanent: true,
|
||||
locale: false
|
||||
}
|
||||
]
|
||||
}
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
redirects: async () => [
|
||||
{
|
||||
source: '/',
|
||||
destination: '/en/dashboards/overview',
|
||||
permanent: true,
|
||||
locale: false,
|
||||
},
|
||||
{
|
||||
source: '/:lang(en|fr|ar)',
|
||||
destination: '/:lang/dashboards/overview',
|
||||
permanent: true,
|
||||
locale: false,
|
||||
},
|
||||
{
|
||||
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
|
||||
destination: '/en/:path',
|
||||
permanent: true,
|
||||
locale: false,
|
||||
}
|
||||
],
|
||||
}
|
||||
|
||||
export default nextConfig
|
||||
|
||||
Reference in New Issue
Block a user