From 7e9d368e8c708f2364ea5ea0409f90d9b0e803ef Mon Sep 17 00:00:00 2001 From: meta-panic Date: Tue, 7 Jan 2025 02:00:13 +0400 Subject: [PATCH] refactor: adjust feature-toggle logic to check only the cookie status --- frontend/src/utils/isDebug.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/utils/isDebug.ts b/frontend/src/utils/isDebug.ts index 0e55e80..bdd18ab 100644 --- a/frontend/src/utils/isDebug.ts +++ b/frontend/src/utils/isDebug.ts @@ -1,11 +1,6 @@ import { cookies } from "next/headers"; export const isDebug = async (): Promise => { - const isDevelopment = process.env.NODE_ENV === 'development'; - if (isDevelopment) { - return isDevelopment; - } - const cookieStore = cookies(); const hasDebugCookie = (await cookieStore).has('debugCookie');