diff options
author | 2021-10-20 04:18:29 -0700 | |
---|---|---|
committer | 2021-10-20 04:18:29 -0700 | |
commit | 58b196c58310a1489b554d16ec2695c7974eaab3 (patch) | |
tree | e631543d9b9891e01bd35e5374e987ef600a524d /packages/bun-framework-next/fallback.development.tsx | |
parent | 3dc53c3d1327f9e86467d6509cb94faacfd26580 (diff) | |
download | bun-58b196c58310a1489b554d16ec2695c7974eaab3.tar.gz bun-58b196c58310a1489b554d16ec2695c7974eaab3.tar.zst bun-58b196c58310a1489b554d16ec2695c7974eaab3.zip |
rewrote most of the router
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, ]; |