diff --git a/apps/stage-pocket/vite-env.d.ts b/apps/stage-pocket/vite-env.d.ts
index 529f0abf7..062516673 100644
--- a/apps/stage-pocket/vite-env.d.ts
+++ b/apps/stage-pocket/vite-env.d.ts
@@ -2,7 +2,7 @@
///
interface ImportMetaEnv {
- readonly VITE_APP_TARGET_HUGGINGFACE_SPACE: boolean
+ readonly VITE_APP_TARGET_HUGGINGFACE_SPACE: string
readonly VITE_PLATFORM: 'ios' | 'android' | 'web'
// more env variables...
}
diff --git a/apps/stage-pocket/vite.config-env.d.ts b/apps/stage-pocket/vite.config-env.d.ts
new file mode 100644
index 000000000..64ac6f1b5
--- /dev/null
+++ b/apps/stage-pocket/vite.config-env.d.ts
@@ -0,0 +1,5 @@
+declare namespace NodeJS {
+ export interface ProcessEnv {
+ VITE_SKIP_MKCERT?: string
+ }
+}
diff --git a/apps/stage-pocket/vite.config.ts b/apps/stage-pocket/vite.config.ts
index f7a4bd05d..731f104e7 100644
--- a/apps/stage-pocket/vite.config.ts
+++ b/apps/stage-pocket/vite.config.ts
@@ -1,3 +1,7 @@
+///
+
+import process from 'node:process'
+
import { join, resolve } from 'node:path'
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
@@ -81,7 +85,7 @@ export default defineConfig({
},
plugins: [
- mkcert(),
+ .../^1|true|yes$/i.test(process.env.VITE_SKIP_MKCERT ?? '') ? [] : [mkcert()],
Info(),
diff --git a/apps/stage-web/vite-env.d.ts b/apps/stage-web/vite-env.d.ts
index 7938100e4..af271c835 100644
--- a/apps/stage-web/vite-env.d.ts
+++ b/apps/stage-web/vite-env.d.ts
@@ -2,6 +2,6 @@
///
interface ImportMetaEnv {
- readonly VITE_APP_TARGET_HUGGINGFACE_SPACE: boolean
+ readonly VITE_APP_TARGET_HUGGINGFACE_SPACE: string
// more env variables...
}