From d541c0b6ed5dd185667736e65f282cbd2187feb1 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Fri, 6 Sep 2024 20:31:22 -0500 Subject: [PATCH] feat: alert when not in production --- src/config/banner.tsx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/config/banner.tsx b/src/config/banner.tsx index 111cdfc..4724357 100644 --- a/src/config/banner.tsx +++ b/src/config/banner.tsx @@ -1,7 +1,23 @@ -import { Server } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import Link from "next/link"; /** used when there is a outage */ export const banner = { - isBanner: false, - bannerText: <>, + isBanner: + process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" + ? true + : /** Set this to true when outage --->*/ false, + bannerText: + process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" ? ( + <> + Your not in production!{" "} + + + + + ) : ( + <>{/** Set this to an explanation! */} + ), };