This is a fork of the Next.js learn SEO course to explore capturing CWV data in Honeycomb.
- Ensure you have a Honeycomb account - it's free to sign up if you don't.
- Get an API key from your Environment settings (if you're on Honeycomb Classic, you can find it in your Team Settings).
- Rename
env.local.lol
toenv.local
for local development, and plug in values: a.HNY_API_KEY
is your API key b. LeaveHNY_DATASET=cwv-fun
in place, or give it a different name. Up to you! yarn dev
to run the app interactively! Or run it however you'd like to run a nextjs site.
Ensure you've got a Honeycomb account and API key.
Simply deploy this app to Vercel like you would any other app. However, you'll need to go into your app's Settings to add Environment Variables:
HNY_API_KEY
--> your API keyHNY_DATASET
--> same dataset as with local development, or not, your choiceNEXT_PUBLIC_ENDPOINT
--> Have this point to the live URL of your site, notlocalhost:3000
There's probably a better way to do this, but uhh, it's a demo app! A little bit of jank is okay.