|
|
@@ -16,10 +16,12 @@ export default defineNuxtRouteMiddleware((to, _) => {
|
|
|
const name: string = routeName?.toString() ?? ''
|
|
|
|
|
|
// <<- TODO: remove after 2.6 release
|
|
|
+ const inDevPages = []
|
|
|
+
|
|
|
const runtimeConfig = useRuntimeConfig()
|
|
|
if (
|
|
|
runtimeConfig.public.env === 'production' &&
|
|
|
- name === 'cmf_licence_page'
|
|
|
+ inDevPages.includes(name)
|
|
|
) {
|
|
|
const { redirectToHome } = useRedirect()
|
|
|
redirectToHome()
|