NapCatQQ/packages/napcat-webui-backend
手瓜一十雪 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
..
src fix: #1575 2026-02-01 10:33:58 +08:00
index.ts Load .env, prefer WEBUI secret, add build script 2026-02-01 11:24:25 +08:00
package.json Refactor font handling and theme config, switch to CodeMirror editor 2025-12-24 18:02:54 +08:00
Readme.md refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
webui.json Add flexible IP access control to WebUI config 2026-01-26 19:46:15 +08:00

The Path of NapCatQQ

Tiny WebUi Backend for NapCatQQ