mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-23 14:30:57 +02: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) => {
|
export const getDomain = (request: NextRequest) => {
|
||||||
// use env variable if set
|
// use env variable if set
|
||||||
if (process.env.BASE_URL) {
|
if (process.env.WEB_DOMAIN) {
|
||||||
return process.env.BASE_URL;
|
return process.env.WEB_DOMAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
// next, try and build domain from headers
|
// next, try and build domain from headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user