File size: 381 Bytes
3b81d2d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
export function getOAuthRedirectUrl(): string {
  if (typeof window === "undefined") {
    return "http://localhost:3000"
  }

  return (
    window.location.hostname === "aicomicfactory.app" ? "https://aicomicfactory.app"
    : window.location.hostname === "jbilcke-hf-ai-comic-factory.hf.space" ? "https://jbilcke-hf-ai-comic-factory.hf.space"
    : "http://localhost:3000"
  )
}