Add configuration file for API resources and update config path in index.ts

This commit is contained in:
zimplexing
2025-07-04 17:27:57 +08:00
parent b266e63ac8
commit 26c489563f
2 changed files with 1 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ export const API_CONFIG = {
};
// Adjust path to read from project root, not from `backend/`
const configPath = path.join(process.cwd(), "config.json");
const configPath = path.join(__dirname, "config.json");
let cachedConfig: Config;
try {