This commit is contained in:
手瓜一十雪 committed 2026-10-30 14:17:03 +08:00
1 parent 162c6db1ac
commit 093b3bf4aa
5 files changed
+41 -20

No files matched your search

+1 -1
View File
@@ -12,7 +12,6 @@ import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const pathWrapper = new NapCatPathWrapper();
const envPath = path.join(__dirname, 'config', '.env');
if (fs.existsSync(envPath)) {
try {
@@ -32,6 +31,7 @@ if (fs.existsSync(envPath)) {
console.log('[NapCat] Failed to load .env file:', e);
}
}
const pathWrapper = new NapCatPathWrapper();
// 环境变量配置
const ENV = {