From 58b196c58310a1489b554d16ec2695c7974eaab3 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Wed, 20 Oct 2021 04:18:29 -0700
Subject: rewrote most of the router

---
 packages/bun-framework-next/fallback.development.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/bun-framework-next/fallback.development.tsx')

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,
   ];
 
-- 
cgit v1.2.3

