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,9 +1,9 @@
|
|||
import { APP_NAME, STORAGE_KEY_LANG } from '~/constants'
|
||||
|
||||
const isDev = process.dev
|
||||
const isPreview = window.location.hostname.includes('deploy-preview')
|
||||
|
||||
export function setupPageHeader() {
|
||||
const isDev = process.dev
|
||||
const isPreview = useRuntimeConfig().public.env === 'staging'
|
||||
|
||||
const i18n = useI18n()
|
||||
|
||||
useHeadFixed({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue