From cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed Mon Sep 17 00:00:00 2001
From: Jack Hanford <jackhanford@gmail.com>
Date: Tue, 23 Nov 2021 10:42:04 -0500
Subject: begin addressing more feedback

---
 packages/bun-framework-next/renderDocument.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

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

