Skip to content
Snippets Groups Projects
Commit c3e045ee authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

set runtime env maintenace to false

parent cbf01689
No related branches found
No related tags found
No related merge requests found
Pipeline #150162 canceled
......@@ -42,13 +42,13 @@ function onScroll() {
<v-col cols="auto">
<v-card flat color="transparent" :min-width="computedMinWidth"
:max-width="props.fluid ? undefined : maxWidth">
<v-alert v-if="runtimeConfig.public.displayMessage === true" class="my-5" type="warning" variant="tonal" border="start" prominent>
<v-alert v-if="runtimeConfig.public?.displayMessage === true" class="my-5" type="warning" variant="tonal" border="start" prominent>
Following an electric maintenance in the datacenter, our web application is currently experiencing technical difficulties and may not be functioning as expected.
Our technical team is working diligently to resolve the issue as soon as possible. We apologize for any inconvenience this may cause and appreciate your patience and understanding.
</v-alert>
<v-alert v-if="runtimeConfig.public.maintenance.enabled === true" class="my-5" type="warning" variant="tonal" border="start" prominent>
{{ runtimeConfig.public.maintenance.message }}
<v-alert v-if="runtimeConfig.public?.maintenance?.enabled === true" class="my-5" type="warning" variant="tonal" border="start" prominent>
{{ runtimeConfig.public.maintenance?.message }}
</v-alert>
<slot />
......
export default defineNuxtRouteMiddleware((to, from) => {
const runtimeConfig = useRuntimeConfig()
const appConfig
const isMaintenance = runtimeConfig?.public?.maintenance === true
if (!isMaintenance) return;
......
......@@ -18,6 +18,7 @@ export default defineNuxtConfig({
dfApiPrefix: "/dfapi",
version: pkg.version,
displayMessage: false,
maintenance: false,
}
},
modules: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment