enzostvs HF Staff commited on
Commit
da7585f
·
1 Parent(s): 0f46dd3

NEW V3 VERSION DROPPED

Browse files
Files changed (1) hide show
  1. app/api/auth/login-url/route.ts +5 -5
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 (process.env.NODE_ENV === "production") {
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 =