mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
fix: handle lazy import errors for TestRoutes in development for nextjs
This commit is contained in:
@@ -16,9 +16,11 @@ import ToolsRoutes from "./tools";
|
||||
|
||||
// @ts-ignore
|
||||
let TestRoutes: any;
|
||||
if (import.meta.env.DEV) {
|
||||
TestRoutes = lazy(() => import("./test"));
|
||||
}
|
||||
try {
|
||||
if (import.meta.env.DEV) {
|
||||
TestRoutes = lazy(() => import("./test"));
|
||||
}
|
||||
} catch {}
|
||||
|
||||
export function Routes({
|
||||
BkndWrapper,
|
||||
|
||||
Reference in New Issue
Block a user