enzostvs HF Staff commited on
Commit
9e470d1
·
1 Parent(s): 085dd54
Files changed (1) hide show
  1. app/actions/auth.ts +3 -4
app/actions/auth.ts CHANGED
@@ -5,10 +5,9 @@ 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
- // ? "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 +
 
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 redirect_uri =
12
  `${host.includes("localhost") ? "http://" : "https://"}` +
13
  url +