We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c6217c commit 4295751Copy full SHA for 4295751
ui/proxy.ts ui/middleware.tsui/proxy.ts renamed to ui/middleware.ts
@@ -42,12 +42,13 @@ const protectedPathnameRegex = RegExp(
42
"i",
43
);
44
45
-export default async function proxy(req: NextRequest) {
+export default async function middleware(req: NextRequest) {
46
/*
47
* Next.js middleware doesn't support reading files, so here we make a (cached)
48
* call to the /config endpoint within the same application :(
49
*/
50
- let oidcEnabled = await fetch(`http://127.0.0.1:${process.env.PORT}/config`, {
+
51
+ let oidcEnabled = await fetch(`http://127.0.0.1:${process.env.PORT}/config`, {
52
cache: "force-cache",
53
})
54
.then((cfg) => cfg.json())
0 commit comments