axiomhq/next-axiom

[Question] How (if possible) can I configure the environment field in Vercel logs?

Closed this issue · 3 comments

ohager commented

So, I managed to log our staging environment (by enabling the NEXT_PUBLIC_AXIOM_INGEST_ENDPOINT var for Preview environment), but in the logs still states environment: 'production'.

image

Although, I imagine that this is all about the VERCEL_ENV Env var, is their another/alternative way to configure the environment?

This seems a bit related to #55

ohager commented

Closed as I may have looked wrongly.... I'm seeing the correct environment now:

image

All fine!

all good, glad it worked out by itself.

I have this exact issue. And the environment field does not seem to get updated to the correct value:
image

@ohager How did you solve this issue?