mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
fix: CLARITY_ID and CLARITY_CONSENT variables are baked in on build time
This commit is contained in:
@@ -17,8 +17,6 @@ export const dismissCookies = (): void =>
|
||||
setCookie("CC", "", 1209600); // 14 days
|
||||
};
|
||||
|
||||
export const requireExcplicitConsent: boolean = process.env.NEXT_PUBLIC_CLARITY_CONSENT === "1";
|
||||
|
||||
export const getCookieChoice = (): "accepted" | "rejected" | "acknowledged" | "none" =>
|
||||
{
|
||||
switch (getCookie("CC"))
|
||||
|
||||
Reference in New Issue
Block a user