We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
configUrl
1 parent a9c8c01 commit bf54c8cCopy full SHA for bf54c8c
ui/middleware.ts
@@ -48,11 +48,11 @@ export default async function middleware(req: NextRequest) {
48
* call to the /config endpoint within the same application :(
49
*/
50
const configUrl = `http://127.0.0.1:${process.env.PORT || '3000'}/config`;
51
- log.info({ configUrl }, "Fetching OIDC configuration");
+ log.debug({ configUrl }, "Fetching OIDC configuration");
52
53
let oidcEnabled = await fetch(configUrl, {
54
cache: "force-cache",
55
- signal: AbortSignal.timeout(1000), // 1 second timeout to prevent hanging
+ signal: AbortSignal.timeout(10000), // 10 second timeout to prevent hanging
56
})
57
.then((cfg) => cfg.json())
58
.then((cfg) => cfg["oidc"])
0 commit comments