refactor: configure preview status with runtime config

This commit is contained in:
Daniel Roe 2022-12-06 21:09:47 +00:00
parent 83d313c47b
commit 08d629ea78
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55
4 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<script setup>
const sub = process.dev ? 'dev' : window.location.hostname.includes('deploy-preview') ? 'preview' : 'alpha'
const sub = process.dev ? 'dev' : useRuntimeConfig().public.env === 'staging' ? 'preview' : 'alpha'
</script>
<template>