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:
@@ -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"),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user