Feat: all - support URL protocol

This commit is contained in:
2024-03-19 16:54:36 +08:00
parent 6f53a867c3
commit 8730513340
7 changed files with 95 additions and 8 deletions

13
src/main/global.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
type Platform = 'WEB' | 'DESKTOP' | 'ANDROID'
interface ImportMetaEnv {
readonly VITE_PLATFORM: Platform
readonly VITE_PROTOCOL: string
readonly VITE_API_URL: string
readonly VITE_API_TOKEN_URL: string
readonly VITE_TURNSTILE_SITE_KEY: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}