diff options
author | 2021-08-19 00:45:29 -0700 | |
---|---|---|
committer | 2021-08-19 00:45:29 -0700 | |
commit | 0826f7710186d7ec26d8d2b284ef8f89186d9350 (patch) | |
tree | da4ead7ff1e0b7cb5b321703acebdf33ad9d5f8f /demos/hello-next/bun-framework-next/renderDocument.tsx | |
parent | c92c7beececaabbfd449af62511857c694ec8f87 (diff) | |
download | bun-0826f7710186d7ec26d8d2b284ef8f89186d9350.tar.gz bun-0826f7710186d7ec26d8d2b284ef8f89186d9350.tar.zst bun-0826f7710186d7ec26d8d2b284ef8f89186d9350.zip |
Fix loading client-side CSS during page transitions
Former-commit-id: f2b6acad6a2e77d3982dd684f88edca222edab06
Diffstat (limited to 'demos/hello-next/bun-framework-next/renderDocument.tsx')
-rw-r--r-- | demos/hello-next/bun-framework-next/renderDocument.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/hello-next/bun-framework-next/renderDocument.tsx b/demos/hello-next/bun-framework-next/renderDocument.tsx index a25e5d273..7daec0005 100644 --- a/demos/hello-next/bun-framework-next/renderDocument.tsx +++ b/demos/hello-next/bun-framework-next/renderDocument.tsx @@ -411,14 +411,14 @@ export async function render({ const isAutoExport = false; if (isAutoExport || isFallback) { - // remove query values except ones that will be set during export - query = { - ...(query.amp - ? { - amp: query.amp, - } - : {}), - }; + // // remove query values except ones that will be set during export + // query = { + // ...(query.amp + // ? { + // amp: query.amp, + // } + // : {}), + // }; asPath = `${asPath}${ // ensure trailing slash is present for non-dynamic auto-export pages asPath.endsWith("/") && asPath !== "/" && !pageIsDynamic ? "/" : "" |