NapCatQQ/packages/napcat-develop
手瓜一十雪 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
..
config Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
index.js Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
loadNapCat.cjs Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
napcat.bat Add Windows packaging workflow and NapCat entry files 2025-11-13 19:48:15 +08:00
nodeTest.ps1 Enable source maps and improve debugging support 2025-11-14 21:21:49 +08:00
package.json Add dev config and copy-env build script 2026-02-01 11:01:53 +08:00
QQNT.dll refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tsconfig.json Update main entry and tsconfig for JS support 2025-11-15 16:09:26 +08:00