Skip to content

Commit

Permalink
refactor: adjust feature-toggle logic to check only the cookie status
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-panic committed Jan 6, 2025
1 parent 1c8ee84 commit 7e9d368
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/utils/isDebug.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { cookies } from "next/headers";

export const isDebug = async (): Promise<boolean> => {
const isDevelopment = process.env.NODE_ENV === 'development';
if (isDevelopment) {
return isDevelopment;
}

const cookieStore = cookies();
const hasDebugCookie = (await cookieStore).has('debugCookie');

Expand Down

0 comments on commit 7e9d368

Please sign in to comment.