Instead of:
const { createServerValidate } = serverValidateHelper({
framework: next({
// options related to per-server validator
}),
})
Do:
const { createServerValidate } = serverValidateHelper({
framework: next({
// options related to framework
}),
})
createServerValidate(formOpts, {
// options that a plugin might need. Example: FormData parsing details
})
The options should be inferred from the plugin.
Instead of:
Do:
The options should be inferred from the plugin.