Skip to content

Commit

Permalink
feat: disable waitlist with env var (#29)
Browse files Browse the repository at this point in the history
You can now disable the waitlist and see how things work when you are
not signed in by setting `SKIP_WAITLIST=1` env var.
  • Loading branch information
lucacasonato authored Feb 28, 2024
1 parent d0fa5ec commit 3323d51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +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") {
return await ctx.next();
}
let isWaitlisted = false;

const token = ctx.state.api.token();
if (token) {
if (tokensForWaitlistAccepted.has(token)) {
Expand Down

0 comments on commit 3323d51

Please sign in to comment.