axiomhq/next-axiom

Allow sending logs and web vitals from non-production deployments

nickrttn opened this issue ยท 3 comments

๐Ÿ‘‹

We would like to be able to send logs and web vitals from non-production Next.js deployments on Vercel.

Our use case is a canary deployment that we would like to open up to users for early feedback and testing. We would ideally receive logs and web vitals from that deployment so we can compare them with our production deployment and spot issues sooner rather than later.

Is this something you would consider supporting?

bahlo commented

Hey @nickrttn, enabling the NEXT_PUBLIC_AXIOM_INGEST_ENDPOINT env on staging deployments as well should do the trick.

Note that we currently don't attach the Vercel environment to Web-Vitals (we're working on that) so distinguishing staging vitals from prod vitals could be an issue.

Let me know if that works ๐Ÿ™Œ

bahlo commented

Closing for #65

@nickrttn the new version 0.16.0 has been released with this experimental feature to support non-Vercel deployments. Check it and let us know if it works the way you expected. We are all-ears for any feedback ๐Ÿ‘