pos-dashboard-v2/next.config.ts

30 lines
638 B
TypeScript
Raw Normal View History

2025-08-05 12:35:40 +07:00
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
basePath: process.env.BASEPATH,
redirects: async () => {
return [
{
source: '/',
2025-08-09 22:38:12 +07:00
destination: '/en/dashboards/overview',
2025-08-05 12:35:40 +07:00
permanent: true,
locale: false
},
{
source: '/:lang(en|fr|ar)',
2025-08-09 22:38:12 +07:00
destination: '/:lang/dashboards/overview',
2025-08-05 12:35:40 +07:00
permanent: true,
locale: false
},
{
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
destination: '/en/:path',
permanent: true,
locale: false
}
]
}
}
export default nextConfig