mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 23:04:58 -05:00
feat: alert when not in production
This commit is contained in:
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! */}</>
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user