Skip to content

Commit 67888a6

Browse files
FatahChanschiller-manuel
authored andcommitted
fix: enforce minimum value for maxRedirects option in start plugin schema
1 parent 71334bc commit 67888a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/start-plugin-core/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const tanstackStartOptionsSchema = z
187187
filter: z.function().args(pageSchema).returns(z.any()).optional(),
188188
failOnError: z.boolean().optional(),
189189
autoStaticPathsDiscovery: z.boolean().optional(),
190-
maxRedirects: z.number().optional(),
190+
maxRedirects: z.number().min(0).optional(),
191191
})
192192
.and(pagePrerenderOptionsSchema.optional())
193193
.optional(),

0 commit comments

Comments
 (0)