Skip to content

Scheduling infrastructure for absolutely everyone.

DDoS rewrite fixes

zomars7e0dbee2ca84
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 7f273e055fc..bb1b38a732a 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -141,9 +141,10 @@ const nextConfig = {
source: "/api/auth/:path*",
has: [
{
- type: "header",
- key: "User-Agent",
- value: "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
+ type: "query",
+ key: "callbackUrl",
+ // prettier-ignore
+ value: "^(?!https?:\/\/).*$",
},
],
destination: "/404",