If your app needs to behave differently based on user location, Next.js Middleware gives you control. And New Relic Synthetics make testing easy.
Observability Week Day 3 features Daniel Kim!
00:00:00 - Welcome
00:00:31 - Who is Daniel Kim?
00:04:13 - How can I test location based app settings?
00:06:51 - What do you get back from a synthetic test?
00:12:53 - How is this about food?
00:16:43 - How should we start with synthetics?
00:22:32 - Adding in middleware
00:32:48 - Testing a button as if you’re in France
00:39:29 - Using Vercel
00:56:14 - Using imgx under the hood of Unsplash
01:04:41 - Using conditionals
01:19:23 - Digging into Vercel logs
01:23:49 - Where can people learn more about synthetics?
Repo: https://github.com/lazyplatypus/food-...
Demo: https://food-feuds-eight.vercel.app/
Links
/ learnwdaniel [6:52 AM]
https://newrelic.com/
https://nextjs.org/docs/api-reference...
https://www.bloomberg.com/news/articl...
https://snack.tips/portland
https://docs.newrelic.com/docs/synthe...
/ learnwdaniel
Watch future episodes live at / jlengstorf
This episode was sponsored by:
- Netlify (https://lwj.dev/netlify)
- Nx (https://lwj.dev/nx)
- Backlight (https://lwj.dev/backlight)
- Pluralsight (https://lwj.dev/pluralsight)
Live transcription by White Coat Captioning (https://whitecoatcaptioning.com/)
Credits:
Local Elevator by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...)
Source: http://incompetech.com/music/royalty-...
Artist: http://incompetech.com/
Busybody by Audionautix is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...)
Artist: http://audionautix.com/
Additional sound effects obtained from https://www.zapsplat.com