Skip to content

Commit

Permalink
chore: add waitlist bypass header (#47)
Browse files Browse the repository at this point in the history
This commit adds a header to bypass the waitlist with. This is useful
for benchmarking purposes.
  • Loading branch information
lucacasonato authored Feb 28, 2024
1 parent 505a948 commit 48a6876
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ const waitlist: MiddlewareHandler<State> = async (req, ctx) => {
url.pathname.startsWith("/badges/") ||
url.pathname.startsWith("/login"));
if (interactive) {
if (Deno.env.get("SKIP_WAITLIST") === "1") {
if (
Deno.env.get("SKIP_WAITLIST") === "1" ||
req.headers.has("x-jsr-bypass-waitlist")
) {
return await ctx.next();
}
let isWaitlisted = false;
Expand Down

0 comments on commit 48a6876

Please sign in to comment.