Skip to content

Commit 604df57

Browse files
committed
ignore config-schema errors
1 parent 37d7b3e commit 604df57

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const zSizeLimit = z.custom<SizeLimit>((val) => {
2525
return false
2626
})
2727

28+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
2829
const zExportMap: zod.ZodType<ExportPathMap> = z.record(
2930
z.string(),
3031
z.object({
@@ -37,6 +38,7 @@ const zExportMap: zod.ZodType<ExportPathMap> = z.record(
3738
})
3839
)
3940

41+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
4042
const zRouteHas: zod.ZodType<RouteHas> = z.union([
4143
z.object({
4244
type: z.enum(['header', 'query', 'cookie']),
@@ -50,6 +52,7 @@ const zRouteHas: zod.ZodType<RouteHas> = z.union([
5052
}),
5153
])
5254

55+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
5356
const zRewrite: zod.ZodType<Rewrite> = z.object({
5457
source: z.string(),
5558
destination: z.string(),
@@ -60,6 +63,7 @@ const zRewrite: zod.ZodType<Rewrite> = z.object({
6063
internal: z.boolean().optional(),
6164
})
6265

66+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
6367
const zRedirect: zod.ZodType<Redirect> = z
6468
.object({
6569
source: z.string(),
@@ -83,6 +87,7 @@ const zRedirect: zod.ZodType<Redirect> = z
8387
])
8488
)
8589

90+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
8691
const zHeader: zod.ZodType<Header> = z.object({
8792
source: z.string(),
8893
basePath: z.literal(false).optional(),
@@ -94,6 +99,7 @@ const zHeader: zod.ZodType<Header> = z.object({
9499
internal: z.boolean().optional(),
95100
})
96101

102+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
97103
const zTurboLoaderItem: zod.ZodType<TurboLoaderItem> = z.union([
98104
z.string(),
99105
z.object({
@@ -103,6 +109,7 @@ const zTurboLoaderItem: zod.ZodType<TurboLoaderItem> = z.union([
103109
}),
104110
])
105111

112+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
106113
const zTurboRule: zod.ZodType<TurboRuleConfigItemOrShortcut> = z.union([
107114
z.array(zTurboLoaderItem),
108115
z.object({
@@ -111,6 +118,7 @@ const zTurboRule: zod.ZodType<TurboRuleConfigItemOrShortcut> = z.union([
111118
}),
112119
])
113120

121+
// @ts-ignore ts check incompatible due to `strictNullChecks: false`
114122
export const configSchema: zod.ZodType<NextConfig> = z.lazy(() =>
115123
z.strictObject({
116124
amp: z

0 commit comments

Comments
 (0)