Update SunoApi.ts: Hotfix for CLERK_BASE_URL

from `clerk.suno.ai` to `clerk.suno.com`
This commit is contained in:
Andy Fang 2024-04-10 12:54:19 +08:00 committed by GitHub
parent 82d70eb947
commit 0e74223756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ export interface AudioInfo {
class SunoApi {
private static BASE_URL: string = 'https://studio-api.suno.ai';
private static CLERK_BASE_URL: string = 'https://clerk.suno.ai';
private static CLERK_BASE_URL: string = 'https://clerk.suno.com';
private readonly client: AxiosInstance;
private sid?: string;
@ -327,4 +327,4 @@ const newSunoApi = async (cookie: string) => {
return await sunoApi.init();
}
export const sunoApi = newSunoApi(process.env.SUNO_COOKIE || '');
export const sunoApi = newSunoApi(process.env.SUNO_COOKIE || '');