Merge pull request #32 from andy-fang-piccollage/main
Update SunoApi.ts: Hotfix for CLERK_BASE_URL
This commit is contained in:
		
						commit
						ce0f3159d1
					
				@ -27,7 +27,7 @@ export interface AudioInfo {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class SunoApi {
 | 
					class SunoApi {
 | 
				
			||||||
  private static BASE_URL: string = 'https://studio-api.suno.ai';
 | 
					  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 readonly client: AxiosInstance;
 | 
				
			||||||
  private sid?: string;
 | 
					  private sid?: string;
 | 
				
			||||||
@ -327,4 +327,4 @@ const newSunoApi = async (cookie: string) => {
 | 
				
			|||||||
  return await sunoApi.init();
 | 
					  return await sunoApi.init();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const sunoApi = newSunoApi(process.env.SUNO_COOKIE || '');
 | 
					export const sunoApi = newSunoApi(process.env.SUNO_COOKIE || '');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user