Fix deployment
This commit is contained in:
parent
22374dbee1
commit
c6f2d67baf
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user