next-axiom icon indicating copy to clipboard operation
next-axiom copied to clipboard

[Q&A] Where do I put my API token?

Open zanzlender opened this issue 2 years ago • 3 comments

I just started using Axiom and next-axiom and I'm a little lost... So any help is appreciated 👍

From the docs I found the ingest api url should be like: https://cloud.axiom.co/api/v1/datasets/$DATASET_NAME/ingest. However, I'm getting status 403, so my question is where do I need to put my API token? Just in the .env file or somewhere else?

zanzlender avatar Sep 05 '22 09:09 zanzlender

Hey @zanzlender, do you use Vercel? If yes, this is all done automatically for you after installing the integration at https://vercel.com/integrations/axiom

bahlo avatar Sep 05 '22 12:09 bahlo

Same question for me - I'm planning on using next-axiom without Vercel (a standalone deployment on Railway)

Does next-axiom support non-Vercel deployments? If so, then the same question as @zanzlender.

raimondlume avatar Sep 05 '22 13:09 raimondlume

@bahlo Sorry forgot to mention that I'm self hosting.

zanzlender avatar Sep 05 '22 14:09 zanzlender

@raimondlume in the mean time we currently support running it on vercel only.

dasfmi avatar Sep 07 '22 09:09 dasfmi

@schehata Gotcha! Is non-Vercel deployment support in the roadmap for next-axiom or is this Vercel only?

raimondlume avatar Sep 07 '22 10:09 raimondlume

@raimondlume We're currently exploring ways to make web-vitals and logs work on non-Vercel deployments, stay tuned 🙌

bahlo avatar Sep 07 '22 10:09 bahlo

Closing for #65

bahlo avatar Sep 13 '22 11:09 bahlo

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 👍

dasfmi avatar Dec 02 '22 09:12 dasfmi