mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-14 03:37:29 +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/`
|
// 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;
|
let cachedConfig: Config;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user