Expected Behavior
https://developers.cloudflare.com/workers/tutorials/handle-form-submissions-with-airtable#submit-data-to-airtable
Actual Behavior
Example code has a typo, it should not include the keyword new for Response.redirect. This raises an exception when following the tutorial.
Section that requires update
This line
|
return new Response.redirect(FORM_URL) |
Should change like so:
- return new Response.redirect(FORM_URL)
+ return Response.redirect(FORM_URL)
Additional information
Since this breaks the tutorial code, I also opened cloudflare/workers-airtable-form#1 in the tutorial repository.
Expected Behavior
https://developers.cloudflare.com/workers/tutorials/handle-form-submissions-with-airtable#submit-data-to-airtable
Actual Behavior
Example code has a typo, it should not include the keyword
newforResponse.redirect. This raises an exception when following the tutorial.Section that requires update
This line
cloudflare-docs/products/workers/src/content/tutorials/handle-form-submissions-with-airtable/index.md
Line 213 in 40cdbcf
Should change like so:
Additional information
Since this breaks the tutorial code, I also opened cloudflare/workers-airtable-form#1 in the tutorial repository.