pos-dashboard-v2/next.config.ts

35 lines
708 B
TypeScript
Raw Normal View History

2025-08-05 12:35:40 +07:00
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
2025-09-01 19:07:22 +07:00
output: 'standalone',
2025-08-05 12:35:40 +07:00
basePath: process.env.BASEPATH,
2025-09-01 18:20:25 +07:00
eslint: {
ignoreDuringBuilds: true,
},
2025-09-01 19:07:22 +07:00
typescript: {
ignoreBuildErrors: true,
},
2025-09-01 18:20:25 +07:00
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,
}
],
2025-08-05 12:35:40 +07:00
}
export default nextConfig