Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Apr 5, 2023
1 parent 5513035 commit 03d2a78
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { headersFromEntries } from '@vercel/turbopack-next/internal/headers'
import type { Ipc } from '@vercel/turbopack-next/ipc/index'
import type { RenderData } from 'types/turbopack'
import type { ChunkGroup } from 'types/next'
import type { NextComponentType } from "next/types";
import type { NextComponentType } from 'next/types'
import { parse } from 'node:querystring'

const ipc = IPC as Ipc<IpcIncomingMessage, IpcOutgoingMessage>
Expand All @@ -42,8 +42,8 @@ const MIME_APPLICATION_JAVASCRIPT = 'application/javascript'
const MIME_TEXT_HTML_UTF8 = 'text/html; charset=utf-8'

type ModuleImport = Promise<{
Component: NextComponentType,
namespace: Record<string, any>;
Component: NextComponentType
namespace: Record<string, any>
}>

export default function startHandler({
Expand All @@ -53,11 +53,11 @@ export default function startHandler({
mod,
chunkGroup,
}: {
isDataReq: boolean;
App?: any;
Document?: any;
mod: () => ModuleImport,
chunkGroup?: ChunkGroup;
isDataReq: boolean
App?: any
Document?: any
mod: () => ModuleImport
chunkGroup?: ChunkGroup
}) {
;(async () => {
while (true) {
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function startHandler({
async function runOperation(
renderData: RenderData,
Component: NextComponentType,
namespace: Record<string, any>,
namespace: Record<string, any>
): Promise<IpcOutgoingMessage> {
if ('getStaticPaths' in namespace) {
const {
Expand Down

0 comments on commit 03d2a78

Please sign in to comment.