feat: #2135
This commit is contained in:
1 parent
162c6db1ac
commit
093b3bf4aa
5 files changed
+41
-20
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user