Spaces:
Running
Running
test
Browse files- app/actions/auth.ts +4 -3
app/actions/auth.ts
CHANGED
@@ -5,9 +5,10 @@ import { headers } from "next/headers";
|
|
5 |
export async function getAuth() {
|
6 |
const authList = await headers();
|
7 |
const host = authList.get("host") ?? "localhost:3000";
|
8 |
-
const url = host.includes("/spaces/enzostvs")
|
9 |
-
|
10 |
-
|
|
|
11 |
const redirect_uri =
|
12 |
`${host.includes("localhost") ? "http://" : "https://"}` +
|
13 |
url +
|
|
|
5 |
export async function getAuth() {
|
6 |
const authList = await headers();
|
7 |
const host = authList.get("host") ?? "localhost:3000";
|
8 |
+
// const url = host.includes("/spaces/enzostvs")
|
9 |
+
// ? "enzostvs-deepsite.hf.space"
|
10 |
+
// : host;
|
11 |
+
const url = host.includes("localhost") ? host : "deepsite.hf.co";
|
12 |
const redirect_uri =
|
13 |
`${host.includes("localhost") ? "http://" : "https://"}` +
|
14 |
url +
|