build(vite): 漏了env 文件

This commit is contained in:
Burt 2023-12-23 11:49:36 +08:00
parent e29cfe99dc
commit 9390af654b
4 changed files with 20 additions and 0 deletions

2
env/.env vendored Normal file
View File

@ -0,0 +1,2 @@
VITE_APP_TITLE = 'Vite + Vue + TS'
VITE_APP_PORT = 7777

6
env/.env.development vendored Normal file
View File

@ -0,0 +1,6 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'development'
VITE_API_SERVER = 'http://localhost:4000'
# 是否去除console 和 debugger
VITE_DELETE_CONSOLE = false

6
env/.env.production vendored Normal file
View File

@ -0,0 +1,6 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'development'
VITE_API_SERVER = 'https://xxx.com'
# 是否去除console 和 debugger
VITE_DELETE_CONSOLE = true

6
env/.env.test vendored Normal file
View File

@ -0,0 +1,6 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'development'
VITE_API_SERVER = 'https://xxx.com'
# 是否去除console 和 debugger
VITE_DELETE_CONSOLE = false