Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/next-core/js/src/entry/app-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ async function runOperation(renderData: RenderData) {
body = result.toUnchunkedString();
}
return {
headers: [["Content-Type", result.contentType() ?? MIME_TEXT_HTML_UTF8]],
headers: [
["Content-Type", result.contentType() ?? MIME_TEXT_HTML_UTF8],
] as [string, string][],
body,
};
}
Expand Down
6 changes: 3 additions & 3 deletions crates/next-core/js/src/entry/app/layout-entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export { default as AppRouter } from "next/dist/client/components/app-router.js"
export { default as LayoutRouter } from "next/dist/client/components/layout-router.js";
export { default as RenderFromTemplateContext } from "next/dist/client/components/render-from-template-context.js";
export { default as GlobalError } from "next/dist/client/components/error-boundary.js";
export { staticGenerationAsyncStorage } from "next/dist/esm/client/components/static-generation-async-storage.js";
export { requestAsyncStorage } from "next/dist/esm/client/components/request-async-storage.js";
import * as serverHooks from "next/dist/esm/client/components/hooks-server-context.js";
export { staticGenerationAsyncStorage } from "next/dist/client/components/static-generation-async-storage.js";
export { requestAsyncStorage } from "next/dist/client/components/request-async-storage.js";
import * as serverHooks from "next/dist/client/components/hooks-server-context.js";
export { serverHooks };
export { renderToReadableStream } from "next/dist/compiled/react-server-dom-webpack/server.browser";

Expand Down
2 changes: 1 addition & 1 deletion crates/next-core/js/src/entry/edge-bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare const PAGE: string;

import { adapter, enhanceGlobals } from "next/dist/esm/server/web/adapter";
import { adapter, enhanceGlobals } from "next/dist/server/web/adapter";

enhanceGlobals();

Expand Down
6 changes: 3 additions & 3 deletions crates/next-core/js/types/modules.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "next/dist/esm/client/components/static-generation-async-storage.js";
declare module "next/dist/esm/client/components/request-async-storage.js";
declare module "next/dist/esm/client/components/hooks-server-context.js";
declare module "next/dist/client/components/static-generation-async-storage.js";
declare module "next/dist/client/components/request-async-storage.js";
declare module "next/dist/client/components/hooks-server-context.js";
declare module "next/dist/compiled/react-server-dom-webpack/server.browser";