Fix deployment

This commit is contained in:
Aditya Siregar 2025-09-01 18:20:25 +07:00
parent 22374dbee1
commit c6f2d67baf
2 changed files with 25 additions and 23 deletions

View File

@ -2,28 +2,29 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
basePath: process.env.BASEPATH,
redirects: async () => {
return [
eslint: {
ignoreDuringBuilds: true,
},
redirects: async () => [
{
source: '/',
destination: '/en/dashboards/overview',
permanent: true,
locale: false
locale: false,
},
{
source: '/:lang(en|fr|ar)',
destination: '/:lang/dashboards/overview',
permanent: true,
locale: false
locale: false,
},
{
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
destination: '/en/:path',
permanent: true,
locale: false
}
]
locale: false,
}
],
}
export default nextConfig

View File

@ -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",