~/talk

Add Flexibility to Your Site with Gatsby Functions

Talkat GatsbyCamp Fall 2021 · on Thursday, 2021-09-16· [web-platform, serverless]
slides:none on file

Builds two Gatsby Functions: an API endpoint that handles POST to create a Stripe checkout session with metadata (city, year, success/cancel URLs) and GET to retrieve that session by session_id, plus a POST Stripe webhook that validates events and expands the session/customer then sends conditional emails via SendGrid webhook sending conditional emails after verifying payment. Demo shows redirect to Stripe checkout, successful return to a success page, and working email delivery in dev using the Stripe CLI forwarding to localhost.

AI-written summary · about

  1. 0:00Introduction to Gatsby Functions
  2. 2:08Demo overview and setup
  3. 3:56Creating the time travel function
  4. 8:53Handling success page requests
  5. 11:44Building the Stripe webhook
  6. 13:56Testing and deploying functions
  7. 14:59Conclusion and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.