diff --git a/next.config.ts b/next.config.ts index e21db92..0e48617 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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 diff --git a/package.json b/package.json index b686ad7..70a67a7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint:fix": "next lint --fix", "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"", "build:icons": "tsx src/assets/iconify-icons/bundle-icons-css.ts", - "removeI18n": "tsx src/remove-translation-scripts/index.ts" + "removeI18n": "tsx src/remove-translation-scripts/index.ts", + "build:no-lint": "NEXT_DISABLE_ESLINT=true NEXT_DISABLE_TYPECHECK=true next build" }, "dependencies": { "@emoji-mart/data": "1.2.1",