Merge pull request #32 from andy-fang-piccollage/main

Update SunoApi.ts: Hotfix for CLERK_BASE_URL
This commit is contained in:
blueeon 2024-04-10 13:47:00 +08:00 committed by GitHub
commit ce0f3159d1
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 || '');