From d451b29b7ff2484eebfa340c0fb899918f75ac92 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Wed, 28 Aug 2024 13:01:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/env.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/config/env.js diff --git a/src/config/env.js b/src/config/env.js new file mode 100644 index 0000000..ff93dc6 --- /dev/null +++ b/src/config/env.js @@ -0,0 +1,7 @@ +const ENV = import.meta.env; + +/** 是否为开发环境 */ +export const IS_DEV = ENV.DEV; + +/** 是否为生产环境 */ +export const IS_PROD = ENV.PROD;