From 2c2bc8614c8ea0ce386369eb4924da1e6aa052d1 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Wed, 27 Sep 2023 09:35:57 +0800
Subject: [PATCH] 添加环境配置区分
---
src/env.d.ts | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/env.d.ts b/src/env.d.ts
index e19346d..e5fad7e 100644
--- a/src/env.d.ts
+++ b/src/env.d.ts
@@ -1,9 +1,15 @@
// Environment variable definition
// https://cn.vitejs.dev/guide/env-and-mode.html#env-files
-
+/// <reference types="vite/client" />
interface ImportMetaEnv {
VITE_APP_ENVIRONMENT: 'DEV' | 'STAG' | 'UAT' | 'PROD',
// api gateway
VITE_APP_APIGATEWAY_BACKEND_HOST: string
+ VITE_API_URL: string
+ VITE_WS_API_URL: string
// More environment variables...
}
+
+interface ImportMeta {
+ readonly env: ImportMetaEnv
+}
--
Gitblit v1.9.3