feat: alert when not in production

This commit is contained in:
dvelo 2024-09-06 20:31:22 -05:00
parent cf7aaa023a
commit d541c0b6ed

@ -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 */ /** used when there is a outage */
export const banner = { export const banner = {
isBanner: false, isBanner:
bannerText: <></>, 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!{" "}
<Link href="https://list.mlnehut.com">
<Button variant="link" className="dark:text-black">
Go to production
</Button>
</Link>
</>
) : (
<>{/** Set this to an explanation! */}</>
),
}; };