Spaces:
Running
Running
NEW V3 VERSION DROPPED
Browse files
app/api/auth/login-url/route.ts
CHANGED
|
@@ -4,12 +4,12 @@ export async function GET(req: NextRequest) {
|
|
| 4 |
const host = req.headers.get("host") ?? "localhost:3000";
|
| 5 |
|
| 6 |
let url: string;
|
| 7 |
-
if (
|
| 8 |
-
url = "enzostvs-deepsite-v3.hf.space";
|
| 9 |
-
} else if (host.includes("/spaces/enzostvs")) {
|
| 10 |
-
url = "enzostvs-deepsite-v3.hf.space";
|
| 11 |
-
} else {
|
| 12 |
url = host;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
const redirect_uri =
|
|
|
|
| 4 |
const host = req.headers.get("host") ?? "localhost:3000";
|
| 5 |
|
| 6 |
let url: string;
|
| 7 |
+
if (host.includes("localhost")) {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
url = host;
|
| 9 |
+
} else if (host.includes("hf.space") || host.includes("/spaces/enzostvs")) {
|
| 10 |
+
url = "enzostvs-deepsite.hf.space";
|
| 11 |
+
} else {
|
| 12 |
+
url = "deepsite.hf.co";
|
| 13 |
}
|
| 14 |
|
| 15 |
const redirect_uri =
|