ai-lab-comic / src /lib /getOAuthRedirectUrl.ts
jbilcke-hf's picture
jbilcke-hf HF staff
update for oauth
3b81d2d
raw
history blame contribute delete
381 Bytes
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"
)
}