Fix deployment
This commit is contained in:
parent
22374dbee1
commit
c6f2d67baf
@ -2,28 +2,29 @@ import type { NextConfig } from 'next'
|
|||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
basePath: process.env.BASEPATH,
|
basePath: process.env.BASEPATH,
|
||||||
redirects: async () => {
|
eslint: {
|
||||||
return [
|
ignoreDuringBuilds: true,
|
||||||
{
|
},
|
||||||
source: '/',
|
redirects: async () => [
|
||||||
destination: '/en/dashboards/overview',
|
{
|
||||||
permanent: true,
|
source: '/',
|
||||||
locale: false
|
destination: '/en/dashboards/overview',
|
||||||
},
|
permanent: true,
|
||||||
{
|
locale: false,
|
||||||
source: '/:lang(en|fr|ar)',
|
},
|
||||||
destination: '/:lang/dashboards/overview',
|
{
|
||||||
permanent: true,
|
source: '/:lang(en|fr|ar)',
|
||||||
locale: false
|
destination: '/:lang/dashboards/overview',
|
||||||
},
|
permanent: true,
|
||||||
{
|
locale: false,
|
||||||
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
|
},
|
||||||
destination: '/en/:path',
|
{
|
||||||
permanent: true,
|
source: '/((?!(?:en|fr|ar|front-pages|favicon.ico)\\b)):path',
|
||||||
locale: false
|
destination: '/en/:path',
|
||||||
}
|
permanent: true,
|
||||||
]
|
locale: false,
|
||||||
}
|
}
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
export default nextConfig
|
export default nextConfig
|
||||||
|
|||||||
@ -11,7 +11,8 @@
|
|||||||
"lint:fix": "next lint --fix",
|
"lint:fix": "next lint --fix",
|
||||||
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
||||||
"build:icons": "tsx src/assets/iconify-icons/bundle-icons-css.ts",
|
"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": {
|
"dependencies": {
|
||||||
"@emoji-mart/data": "1.2.1",
|
"@emoji-mart/data": "1.2.1",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user