mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-03-10 04:19:49 +01:00
Merge Tag 'v0.2.31'
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { notFound } from 'next/navigation';
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export default function Debug({children}: {children: ReactNode}) {
|
||||
if (process.env.NODE_ENV !== 'development') return <></>
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
notFound()
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="debug">
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user