🔧 Update Challonge API proxy configuration to simplify URL rewriting and enforce nginx proxy usage
This commit is contained in:
@@ -15,12 +15,10 @@
|
||||
|
||||
/**
|
||||
* Get the appropriate base URL based on environment
|
||||
* Always use nginx proxy to avoid CORS issues
|
||||
*/
|
||||
function getBaseURL() {
|
||||
if (import.meta.env.DEV) {
|
||||
return '/api/challonge/v2.1';
|
||||
}
|
||||
return 'https://api.challonge.com/v2.1';
|
||||
return '/api/challonge/v2.1';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user