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*", source: "/api/auth/:path*",
has: [ has: [
{ {
type: "header", type: "query",
key: "User-Agent", key: "callbackUrl",
value: "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)", // prettier-ignore
value: "^(?!https?:\/\/).*$",
}, },
], ],
destination: "/404", destination: "/404",