签入版本
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s

This commit is contained in:
2026-09-16 10:08:07 +08:00
commit fda0fe1a53
820 changed files with 97186 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/**
* Get the configuration file variable name
* @param env
*/
export const getConfigFileName = (env: Record<string, any>) => {
const safe = (env.VITE_GLOB_APP_SHORT_NAME || '__APP')
.replace(/[^\w]/g, '_') // 非字母数字→_
.replace(/_{2,}/g, '_') // 连续 _ 变单个
.replace(/^_|_$/g, '') // 去掉首尾 _
.toUpperCase();
return `__PRODUCTION_${safe}__CONF__`;
};