#2370·form

[v2] Make `createServerValidate` use params from plugin

Author: LeCarbonatorCreated Sep 3, 2026Updated Sep 3, 2026
Labelstype: enhancementv2scope: reactarea: runtimearea: types

Instead of:

typescript
const { createServerValidate } = serverValidateHelper({
  framework: next({
    // options related to per-server validator
  }),
})

Do:

typescript
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.