mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Fix oauth redirect
This commit is contained in:
parent
f4d55479c4
commit
884f746211
@ -2,8 +2,8 @@ import { NextRequest } from "next/server";
|
||||
|
||||
export const getDomain = (request: NextRequest) => {
|
||||
// use env variable if set
|
||||
if (process.env.BASE_URL) {
|
||||
return process.env.BASE_URL;
|
||||
if (process.env.WEB_DOMAIN) {
|
||||
return process.env.WEB_DOMAIN;
|
||||
}
|
||||
|
||||
// next, try and build domain from headers
|
||||
|
Loading…
x
Reference in New Issue
Block a user