hook.io icon indicating copy to clipboard operation
hook.io copied to clipboard

Local Hook.env

Open joshgillies opened this issue 9 years ago • 1 comments

Currently Hook.env is global, as stated by:

"Here you can set key / value pairs that will be available in all your hooks as Hook.env" -- https://hook.io/env

It would be nice to have an env per hook. Especially in cases where where across multiple hooks an env key would be something generic like env.apiKey.

The current implementing could be expanded to simply expose an interface via /user/hook/admin that enables the setting of per hook env vars while behind the scenes manages a mapping between env.locaArg (local) and env.hook.localArg (global).

Could be bundled in part with the work happening over at: #108

joshgillies avatar Aug 25 '15 02:08 joshgillies

Sounds good.

Shouldn't be too hard to add.

Marak avatar Aug 25 '15 02:08 Marak