浏览代码

fix environment mismatch in alert bar

Olivier Massot 2 年之前
父节点
当前提交
6f23eea6fc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>