Next.js for Drupal
Webform Example - Server Side
We submit the form values to a custom API route first. The API route then submits the form to Drupal using the Webform REST module.
This is useful if we need to hide client IDs and secrets or our Drupal implementation.