aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jack Hanford <jackhanford@gmail.com> 2021-11-15 16:34:22 -0800
committerGravatar Jack Hanford <jackhanford@gmail.com> 2021-11-22 10:21:29 -0800
commita79153f6e0d8f41a99b9b37bd791217884f91f10 (patch)
tree8244b722970b6f5a5a11641fb9c61461083bfa1a
parent87319ba73d7f079595c11325904c37cf5b654eda (diff)
downloadbun-a79153f6e0d8f41a99b9b37bd791217884f91f10.tar.gz
bun-a79153f6e0d8f41a99b9b37bd791217884f91f10.tar.zst
bun-a79153f6e0d8f41a99b9b37bd791217884f91f10.zip
remove unused proxy shim
-rw-r--r--packages/bun-framework-next/renderDocument.tsx38
1 files changed, 2 insertions, 36 deletions
diff --git a/packages/bun-framework-next/renderDocument.tsx b/packages/bun-framework-next/renderDocument.tsx
index d0ceb8599..5b4cab0ce 100644
--- a/packages/bun-framework-next/renderDocument.tsx
+++ b/packages/bun-framework-next/renderDocument.tsx
@@ -36,41 +36,6 @@ const isJSFile = (file: string) =>
file.endsWith(".ts") ||
file.endsWith(".tsx");
-const notImplementedProxy = (base) =>
- new Proxy(
- {},
- {
- deleteProperty: function (target, prop) {
- return undefined;
- },
- enumerate: function (oTarget, sKey) {
- return [].entries();
- },
- ownKeys: function (oTarget, sKey) {
- return [].values();
- },
- has: function (oTarget, sKey) {
- return false;
- },
- defineProperty: function (oTarget, sKey, oDesc) {
- return undefined;
- },
- getOwnPropertyDescriptor: function (oTarget, sKey) {
- return undefined;
- },
- get(this, prop) {
- throw new ReferenceError(
- `${base} is not available for this environment.`
- );
- },
- set(this, prop, value) {
- throw new ReferenceError(
- `${base} is not available for this environment.`
- );
- },
- }
- );
-
type DocumentFiles = {
sharedFiles: readonly string[];
pageFiles: readonly string[];
@@ -458,7 +423,7 @@ export async function render({
delete query.__nextDefaultLocale;
const isSSG = !!getStaticProps;
- const isBuildTimeSSG = isSSG && false;
+
const defaultAppGetInitialProps =
App.getInitialProps === (App as any).origGetInitialProps;
@@ -515,6 +480,7 @@ export async function render({
</RouterContext.Provider>
);
+ // Todo: Double check this when adding support for dynamic()
await Loadable.preloadAll(); // Make sure all dynamic imports are loaded
const router = new ServerRouter(