pos-dashboard-v2/next.config.ts
Aditya Siregar 38e1bb5027 fix
2025-09-01 19:07:22 +07:00

35 lines
708 B
TypeScript

import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'standalone',
basePath: process.env.BASEPATH,
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: 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