refactor: configure preview status with runtime config
This commit is contained in:
parent
83d313c47b
commit
08d629ea78
4 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue