diff --git a/src/stores/siteconfig-store.ts b/src/stores/siteconfig-store.ts index fb68862..952b394 100644 --- a/src/stores/siteconfig-store.ts +++ b/src/stores/siteconfig-store.ts @@ -7,8 +7,8 @@ interface SiteConfig { export const useSiteConfigStore = defineStore('siteConfigStore', ()=> { const siteConfig = ref({ - protocol: import.meta.env.VITE_PROTOCOL as string, - host: import.meta.env.VITE_HOST as string + protocol: import.meta.env.VITE_PROTOCOL, + host: import.meta.env.VITE_HOST }) return { siteConfig } }) \ No newline at end of file diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 11f02fe..be58fc9 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1 +1,11 @@ /// + +interface ImportMetaEnv { + readonly VITE_PROTOCOL: string, + readonly VITE_HOST: string, + readonly VITE_LOCALE: string, +} + +interface ImportMeta { + readonly env: ImportMetaEnv +} \ No newline at end of file