diff --git a/.env.development b/.env.development deleted file mode 100644 index ff36480c9..000000000 --- a/.env.development +++ /dev/null @@ -1,2 +0,0 @@ -VITE_API_BASE_HOST = 'http://localhost:8080/api' -VITE_DEV_TOOLS_ENABLED = true diff --git a/.env.production b/.env.production deleted file mode 100644 index 90b17719a..000000000 --- a/.env.production +++ /dev/null @@ -1,2 +0,0 @@ -VITE_API_BASE_HOST = './api' - diff --git a/.env.test b/.env.test deleted file mode 100644 index 018491c85..000000000 --- a/.env.test +++ /dev/null @@ -1 +0,0 @@ -VITE_API_BASE_HOST = 'http://localhost:6969/Bauhaus-Back-Office/api' diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 000000000..cfac9520c --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,45 @@ +/// + + +type ImportMetaEnv = { + // Auto-generated by `npx vite-envs update-types` and hot-reloaded by the `vite-env` plugin + // You probably want to add `/src/vite-env.d.ts` to your .prettierignore + VITE_API_MODE: string + VITE_API_BASE_HOST: string + VITE_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS: string + VITE_OIDC_ISSUER: string + VITE_OIDC_CLIENT_ID: string + VITE_CONCEPTS_DOCUMENTATION: string + VITE_OPERATIONS_DOCUMENTATION: string + VITE_DEV_TOOLS_ENABLED: string + VITE_NAME: string + VITE_VERSION: string + BASE_URL: string + MODE: string + DEV: boolean + PROD: boolean + SKIP_PREFLIGHT_CHECK: string + // @user-defined-start + /* + * You can use this section to explicitly extend the type definition of `import.meta.env` + * This is useful if you're using Vite plugins that define specific `import.meta.env` properties. + * If you're not using such plugins, this section should remain as is. + */ + SSR: boolean; + // @user-defined-end +} + + + +interface ImportMeta { + // Auto-generated by `npx vite-envs update-types` + + url: string + + readonly hot?: import('vite-envs/types/hot').ViteHotContext + + readonly env: ImportMetaEnv + + glob: import('vite-envs/types/importGlob').ImportGlobFunction +} +