enzostvs HF Staff commited on
Commit
085dd54
·
1 Parent(s): 829f9f6
Files changed (1) hide show
  1. 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
- ? "enzostvs-deepsite.hf.space"
10
- : host;
 
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 +