DDoS rewrite fixes

pull/3888/head
zomars 2022-08-16 16:28:19 -06:00
parent 1e5cb0bbd0
commit 7e0dbee2ca
1 changed files with 4 additions and 3 deletions

View File

@ -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",