Skip to content

Commit f70caa2

Browse files
committed
fix: type resolution
1 parent 6490cb2 commit f70caa2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/next/src/server/config-shared.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { SubresourceIntegrityAlgorithm } from '../build/webpack/plugins/subresou
1010
import { WEB_VITALS } from '../shared/lib/utils'
1111
import type { NextParsedUrlQuery } from './request-meta'
1212
import { SizeLimit } from '../../types'
13+
import type { ZodError } from 'zod'
1314

1415
export type NextConfigComplete = Required<NextConfig> & {
1516
images: Required<ImageConfigComplete>
@@ -781,9 +782,7 @@ export async function normalizeConfig(phase: string, config: any) {
781782
return await config
782783
}
783784

784-
export function validateConfig(
785-
userConfig: NextConfig
786-
): import('next/dist/compiled/zod').ZodError | null {
785+
export function validateConfig(userConfig: NextConfig): ZodError | null {
787786
if (process.env.NEXT_MINIMAL) {
788787
return null
789788
}

0 commit comments

Comments
 (0)