mirror of
https://github.com/codex-storage/codex-marketplace-ui.git
synced 2025-02-24 13:48:14 +00:00
Use vite to detech production mode
This commit is contained in:
parent
a9ec0c5156
commit
cf3adb634a
@ -1,8 +1,7 @@
|
||||
import { createRootRoute, Outlet } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
|
||||
const TanStackRouterDevtools =
|
||||
process.env.NODE_ENV === "production"
|
||||
const TanStackRouterDevtools = import.meta.env.PROD
|
||||
? () => null // Render nothing in production
|
||||
: React.lazy(() =>
|
||||
// Lazy load in development
|
||||
|
Loading…
x
Reference in New Issue
Block a user