From 6a2372b0b2260165d9cde53ec1163265dab54fc8 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Mon, 25 Oct 2021 17:05:59 -0700
Subject: Fix rendering with Next.js after latest changes to route api

---
 packages/bun-framework-next/client.development.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/packages/bun-framework-next/client.development.tsx b/packages/bun-framework-next/client.development.tsx
index 8d2f2d485..df58151f9 100644
--- a/packages/bun-framework-next/client.development.tsx
+++ b/packages/bun-framework-next/client.development.tsx
@@ -89,7 +89,7 @@ function nextDataFromBunData() {
   }, {});
 
   return {
-    page: routes[route],
+    page: routes.keys[route],
     buildId: "1234",
     assetPrefix: "",
     isPreview: false,
-- 
cgit v1.2.3

