mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-16 05:04:42 +08:00
Add configuration file for API resources and update config path in index.ts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user