Debugging prod
parent
4b428d22de
commit
39364d8476
|
@ -33,6 +33,7 @@ const querySchema = z.object({
|
|||
|
||||
export default function Bookings() {
|
||||
const router = useRouter();
|
||||
console.log("router", JSON.stringify(router));
|
||||
const { status } = router.isReady ? querySchema.parse(router.query) : { status: "upcoming" as const };
|
||||
const { t } = useLocale();
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@ export const perfObserver =
|
|||
new PerformanceObserver((items) => {
|
||||
items.getEntries().forEach((entry) => {
|
||||
// Log entry duration in seconds with four decimal places.
|
||||
console.log(entry.name.replace("$1", `${(entry.duration / 1000.0).toFixed(4)}s`));
|
||||
if (!!process.env.NEXT_PUBLIC_DEBUG)
|
||||
console.log(entry.name.replace("$1", `${(entry.duration / 1000.0).toFixed(4)}s`));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue