codetour icon indicating copy to clipboard operation
codetour copied to clipboard

How can I access env vars in steps?

Open synedra opened this issue 4 years ago • 6 comments

I need to make links to a netlify host which is created during the tour. How can I set it and then make it available?

synedra avatar Sep 09 '21 20:09 synedra

There's not currently a way to do this, but we could add something. Would you simply need a way to reference an env var, as part of parting up a hyperlink? Maybe something like: Open Netlify, where {{NAME}} is interpolating an env var's value into the string?

lostintangent avatar Sep 13 '21 17:09 lostintangent

👍 For this feature. Would be very handy.

NotMyself avatar Sep 27 '21 18:09 NotMyself

I have a similar need. @lostintangent Your proposed solution would be much appreciated!

jeluard avatar Oct 14 '21 22:10 jeluard

For setting env variables, it would be super handy to have a way for users to enter their values. I use:

>> export ENV_VAR=insert_your_value_here

But of course that opens a terminal and sets the variable to that dummy value. having it he a pseudo-form in the tour where the user could paste in their value, then hit the link and have it set the ENV variable would be 👨🏻‍🍳 💋

davidgs avatar May 20 '22 14:05 davidgs

+1-ing this feature request!

kazemicode avatar Jul 26 '22 22:07 kazemicode

Do folks generally feel like the {{NAME}} syntax would work well? If so, I can take a look at this later this week.

lostintangent avatar Jul 27 '22 17:07 lostintangent