diff options
Diffstat (limited to 'packages/bun-framework-next/fallback.development.tsx')
-rw-r--r-- | packages/bun-framework-next/fallback.development.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/bun-framework-next/fallback.development.tsx b/packages/bun-framework-next/fallback.development.tsx index e0663108f..7378df037 100644 --- a/packages/bun-framework-next/fallback.development.tsx +++ b/packages/bun-framework-next/fallback.development.tsx @@ -37,7 +37,7 @@ function renderFallback({ reason, problems, }: FallbackMessageContainer) { - const route = router.routes[router.route]; + const route = router.routes.values[router.route]; if (!document.getElementById("__next")) { const next = document.createElement("div"); @@ -51,7 +51,7 @@ function renderFallback({ }); globalThis.__NEXT_DATA__.pages["/_app"] = [ - ...globalThis.__NEXT_DATA__.pages["/_app"], + ...(globalThis.__NEXT_DATA__.pages["/_app"] || []), ...globalThis["__BUN"].allImportedStyles, ]; |