diff --git a/packages/open-next/src/types/open-next.ts b/packages/open-next/src/types/open-next.ts index 0a23d76ff..9405da592 100644 --- a/packages/open-next/src/types/open-next.ts +++ b/packages/open-next/src/types/open-next.ts @@ -343,8 +343,8 @@ export interface OpenNextConfig { * @default undefined */ middleware?: DefaultFunctionOptions & { - //We force the middleware to be a function - external: true; + // Force the middleware to be a function when `true` (default to `false`) + external?: boolean; /** * The override options for the middleware.