allow agent

This commit is contained in:
Brian Cao 2022-08-18 23:25:45 -07:00
parent 135f0ac4b3
commit 41d4b4c402
2 changed files with 4795 additions and 7617 deletions

View File

@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
export default async (req, res) => {
await useCors(req, res);
if (isbot(req.headers['user-agent'])) {
if (isbot(req.headers['user-agent']) && !process.env.ALLOW_AGENT) {
return ok(res);
}

12410
yarn.lock

File diff suppressed because it is too large Load Diff