sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Support multiple SENTRY_DOTENV_PATH

Open carl-sauter opened this issue 10 months ago • 5 comments

Hey there I would love the see support for multiple SENTRY_DOTENV_PATH files. We have a setup with .env and .env.local. I would like to put the SENTRY_URL in the public .env file and the SENTRY_TOKEN in the local .env.local

Somthing like SENTRY_DOTENV_PATH=.env,.env.local would be great.

carl-sauter avatar Apr 07 '25 11:04 carl-sauter

Hi @Kinqdos, thank you for the suggestion, I can put this issue on our backlog.

It might take some time for us to implement this, however, since we have other priorities. PRs are always welcome if you would like to see this feature implemented more quickly!

szokeasaurusrex avatar Apr 08 '25 08:04 szokeasaurusrex

Hi @szokeasaurusrex thank you for the response. I don't have much expierence with rust, but I will give it a try. What do you think about a comma as a separator for the files?

carl-sauter avatar Apr 08 '25 08:04 carl-sauter

@Kinqdos I just realized this change should be pretty simple, I can do it for you

szokeasaurusrex avatar Apr 08 '25 09:04 szokeasaurusrex

@szokeasaurusrex Just created a pr, if you didn't finished yet, you can also use mine ;)

carl-sauter avatar Apr 08 '25 09:04 carl-sauter

@Kinqdos replied on the PR, let's continue the conversation over there

szokeasaurusrex avatar Apr 09 '25 10:04 szokeasaurusrex

Fixed in #2454

szokeasaurusrex avatar Oct 09 '25 13:10 szokeasaurusrex