bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Support collection-level environment

Open nofacer opened this issue 10 months ago • 1 comments

Currently it only supports global environment. It will be impossible to use same variable key like "host" with different value in each collection. The structure would be flat for now if each collection has multiple env collection such as -dev -prod

Is it possible to support it like insomnia does?

nofacer avatar Apr 09 '24 04:04 nofacer

As far as I know, environments are scoped to collections. As soon as you click on a request, the available environments change to the collection environment.

If you have the same variable multiple times in the same project and therefore Git Repository, you could just adjust host to be more specific.

sebimarkgraf avatar Apr 09 '24 05:04 sebimarkgraf

@sebimarkgraf does it support base env and sub env like this? In another word, there are some common vars like hostname and some variant stuffs like different username/password pair. image image

For now if I want to use different usr/psw I have to switch to a brand new env and need to redefine the common things again such as hostname.

nofacer avatar Apr 11 '24 06:04 nofacer

(This is a duplicate of #292, and it's in the V2 part of the roadmap)

edbrannin avatar Jun 24 '24 20:06 edbrannin

Closing this as duplicate of https://github.com/usebruno/bruno/issues/292.

Please add a 👍 reaction to issues you find important.

sanjai0py avatar Jul 10 '24 09:07 sanjai0py