Explorar o código

fix environment mismatch in alert bar

Olivier Massot %!s(int64=2) %!d(string=hai) anos
pai
achega
6f23eea6fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/Layout/AlertBar/Env.vue

+ 1 - 1
components/Layout/AlertBar/Env.vue

@@ -16,6 +16,6 @@ Barre d'alerte qui s'affiche lorsque l'utilisateur n'est pas dans un environneme
 <script setup lang="ts">
   const runtimeConfig = useRuntimeConfig()
 
-  const env = runtimeConfig.env ?? 'unknown'
+  const env = runtimeConfig.public.env ?? 'unknown'
   const show = env !== 'production'
 </script>