黑暗模式

This commit is contained in:
Blackberry009
2025-06-13 18:23:27 +08:00
parent d8db32d71a
commit c8c7769e9a
8 changed files with 23 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ module.exports = {
BUNDLE_ANALYZER: process.env.ANALYZE === 'true' || false, // 是否展示编译依赖内容与大小
VERSION: (() => {
try {
// 优先使用环境变量否则从package.json中获取版本号
// 优先使用环境变量,否则从 package.json 中获取版本号
return (
process.env.NEXT_PUBLIC_VERSION || require('../package.json').version
)