fix(projects): add prod mockjs switch [添加生产模式的mockjs的开关]

This commit is contained in:
Soybean
2023-05-17 07:51:07 +08:00
parent 9b19f96ff6
commit 9f5638f16d
7 changed files with 346 additions and 371 deletions

View File

@ -59,6 +59,11 @@ interface ImportMetaEnv {
readonly VITE_COMPRESS_TYPE?: 'gzip' | 'brotliCompress' | 'deflate' | 'deflateRaw';
/** 是否应用pwa */
readonly VITE_PWA?: 'Y' | 'N';
/**
* 是否开启生产模式下的mock
* @description 生产模式下会拦截XHR导致无法获取response不使用mock请求时设置为N
*/
readonly VITE_PROD_MOCK?: 'Y' | 'N';
/** hash路由模式 */
readonly VITE_HASH_ROUTE?: 'Y' | 'N';
/** 是否是部署的vercel */