NapCatQQ/packages
手瓜一十雪 d511e2bb3f
Some checks are pending
Build NapCat Artifacts / Build-Framework (push) Waiting to run
Build NapCat Artifacts / Build-Shell (push) Waiting to run
Load .env, prefer WEBUI secret, add build script
Load local .env in napcat-shell and prioritize NAPCAT_WEBUI_SECRET_KEY across the app. Changes include:
- package.json: add build🐚config script to build shell and copy env for dev builds.
- packages/napcat-develop/config/.env and loadNapCat.cjs: update default WEBUI secret to `napcatqq` and set the same env in the loader.
- packages/napcat-shell/napcat.ts: read config/.env into process.env at startup, rework pathWrapper/logger initialization, and minor formatting cleanups.
- packages/napcat-webui-backend/index.ts: InitWebUi now prefers NAPCAT_WEBUI_SECRET_KEY from the environment (updates config and logs the change); only generates a random token if no env override and current token is default.
These changes make it easier to override the WebUI token for development and ensure the token is propagated when building the shell for dev workflows.
2026-02-01 11:24:25 +08:00
..
napcat-adapter Introduce NapCat Protocol and adapter management 2026-01-29 22:14:55 +08:00
napcat-common Remove undici dependency and implement proxy download 2026-01-29 20:54:48 +08:00
napcat-core 修改合并消息上传资源日志 (#1573) 2026-02-01 09:53:40 +08:00
napcat-develop Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
napcat-framework Introduce NapCat Protocol and adapter management 2026-01-29 22:14:55 +08:00
napcat-image-size Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-napi-loader refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
napcat-native Update ffmpegAddon binary for darwin arm64 2026-01-22 14:53:58 +08:00
napcat-onebot Default plugins disabled; skip loading disabled 2026-01-31 15:26:56 +08:00
napcat-plugin-builtin Add plugin WebUI extension page and API routing support 2026-01-30 12:48:24 +08:00
napcat-protobuf Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-protocol Introduce NapCat Protocol and adapter management 2026-01-29 22:14:55 +08:00
napcat-pty Add backend and frontend support for NapCat auto-update 2025-11-19 21:05:08 +08:00
napcat-qrcode Remove unused dependencies from package.json 2025-11-16 11:02:21 +08:00
napcat-schema Update Vite aliases in napcat-schema config 2026-01-30 14:41:46 +08:00
napcat-shell Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
napcat-shell-loader Pass CLI args to worker and update login script example 2026-01-17 18:54:18 +08:00
napcat-test Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-types Add plugin WebUI extension page and API routing support 2026-01-30 12:48:24 +08:00
napcat-universal Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-vite feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
napcat-webui-backend Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
napcat-webui-frontend fix: #1575 2026-02-01 10:33:58 +08:00