refactor: update environment configuration and enhance notification handling

- Refactored ecosystem configuration to utilize .env for sensitive variables, improving security and flexibility.
- Replaced direct notification button implementation with a dedicated PlayerNotificationBell component for better code organization.
- Updated various screens to integrate the new notification component and adjusted prefetch settings for links to optimize performance.
- Added new translations for notifications and wallet logs to enhance user experience across multiple languages.
This commit is contained in:
2026-06-01 09:29:02 +08:00
parent 9f43d07778
commit 10bee1b857
16 changed files with 241 additions and 59 deletions

View File

@@ -38,16 +38,10 @@ module.exports = {
env: {
NODE_ENV: "production",
PORT: "3800",
// Laravel 根地址(无尾部 /);同机部署填 http://127.0.0.1:8000
LOTTERY_API_UPSTREAM: "http://127.0.0.1:8000",
// 构建时需存在;运行时可留空若已在 build 时写入
// NEXT_PUBLIC_MAIN_SITE_URL: "https://main.yourdomain.com",
},
// PM2 5.2+:可把变量放在 .env由 PM2 注入(需 npm run build 前也有一份供 Next 编译)
// env_file: path.join(APP_CWD, ".env"),
// LOTTERY_API_UPSTREAM、NEXT_PUBLIC_* 写在 .env勿在此硬编码 LOTTERY_API_UPSTREAM
env_file: path.join(APP_CWD, ".env"),
},
],
};