diff options
author | 2021-11-23 10:42:04 -0500 | |
---|---|---|
committer | 2021-11-23 10:42:04 -0500 | |
commit | cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed (patch) | |
tree | 16e03f81f89beccbd749a66bc16bd26e82307605 | |
parent | 1d01ffeb9e3fa90b009afe08a43b34843856c074 (diff) | |
download | bun-cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed.tar.gz bun-cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed.tar.zst bun-cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed.zip |
begin addressing more feedback
Diffstat (limited to '')
-rw-r--r-- | packages/bun-framework-next/renderDocument.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/bun-framework-next/renderDocument.tsx b/packages/bun-framework-next/renderDocument.tsx index 218d21a3c..9cc6654c7 100644 --- a/packages/bun-framework-next/renderDocument.tsx +++ b/packages/bun-framework-next/renderDocument.tsx @@ -20,7 +20,7 @@ import { } from "next/dist/shared/lib/utils"; import { RenderOpts } from "next/dist/server/render"; import * as NextDocument from "next/document"; -import * as ReactDOMServer from "react-dom/server"; +import * as ReactDOMServer from "react-dom/server.browser"; import * as React from "react"; import * as ReactIs from "react-is"; @@ -344,7 +344,7 @@ export async function render({ request: Request; }): Promise<Response> { const { default: Component } = PageNamespace || {}; - const getStaticProps = (PageNamespace as any).getStaticProps || null; + const getStaticProps = (PageNamespace as any)?.getStaticProps || null; const { default: AppComponent_ } = AppNamespace || {}; var query = Object.assign({}, route.query); @@ -746,7 +746,7 @@ export async function render({ devOnlyCacheBusterQueryString: "", scriptLoader, isPreview: isPreview, - autoExport: isAutoExport, + autoExport: nextExport === true ? true : undefined, nextExport: nextExport, useMaybeDeferContent, }); |