Spaces:
Runtime error
Runtime error
Download src/lib/getOAuthRedirectUrl.ts from WaledRashed24/comics: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/WaledRashed24/comics/resolve/main/src/lib/getOAuthRedirectUrl.ts
- Command line
-
hf download hf://spaces/WaledRashed24/comics/src/lib/getOAuthRedirectUrl.ts
-
curl -L -o getOAuthRedirectUrl.ts https://huggingface.co/spaces/WaledRashed24/comics/resolve/main/src/lib/getOAuthRedirectUrl.ts
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" | |
| ) | |
| } |