fix(stage-pocket): temporarily inline isEnvTruthy in vite.config.ts

This commit is contained in:
Makito
2026-03-05 03:13:10 +07:00
parent 1f5d696d23
commit 920a21b1c1
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ watch([stream, () => vadLoaded.value], async ([s, loaded]) => {
:background="selectedOption"
:top-color="sampledColor"
>
<div flex="~ col" relative z-2 h-100dvh w-100vw of-hidden py-safe>
<div flex="~ col" py-safe relative z-2 h-100dvh w-100vw of-hidden>
<!-- header -->
<div class="px-0 py-1 md:px-3 md:py-3" w-full gap-2>
<Header class="hidden md:flex" />
+7 -1
View File
@@ -18,12 +18,18 @@ import VueDevTools from 'vite-plugin-vue-devtools'
import Layouts from 'vite-plugin-vue-layouts'
import VueMacros from 'vue-macros/vite'
import { isEnvTruthy } from '@proj-airi/stage-shared'
import { Download } from '@proj-airi/unplugin-fetch/vite'
import { DownloadLive2DSDK } from '@proj-airi/unplugin-live2d-sdk/vite'
import { templateCompilerOptions } from '@tresjs/core'
import { defineConfig } from 'vite'
// import { isEnvTruthy } from '@proj-airi/stage-shared'
function isEnvTruthy(value: string | undefined | null): boolean {
if (value == null)
return false
return /^(?:1|true|t|yes|y|on)$/i.test(value.trim())
}
const stageUIAssetsRoot = resolve(join(import.meta.dirname, '..', '..', 'packages', 'stage-ui', 'src', 'assets'))
const sharedCacheDir = resolve(join(import.meta.dirname, '..', '..', '.cache'))