It would mean that we could set secret or sensitive values like API keys, passwords or configuration settings directly in the environment or Perchance server instead of hardcoding them into the app.
This will grant a security as these values would not be exposed in the app’s public code where anyone can check the values.
An environment variable refers to a dynamic value stored in a system’s environment.
These variables are key-value pairs like variable= value where the variable is visible to the public but value itself remains hidden.
I see. So really, it’s just private code only you can see/edit from your account, something like that. Everything runs in the browser, is the thing. Which means it will be accessible through the dev console one way or another. I’m not sure it will be possible to actually have something secure and truly hidden like this. But I guess it won’t be plain text in the code editor.
What would that mean in the context of perchance?
It would mean that we could set secret or sensitive values like API keys, passwords or configuration settings directly in the environment or Perchance server instead of hardcoding them into the app.
This will grant a security as these values would not be exposed in the app’s public code where anyone can check the values.
An environment variable refers to a dynamic value stored in a system’s environment.
These variables are key-value pairs like
variable = value
where thevariable
is visible to the public butvalue
itself remains hidden.Whew!
I see. So really, it’s just private code only you can see/edit from your account, something like that. Everything runs in the browser, is the thing. Which means it will be accessible through the dev console one way or another. I’m not sure it will be possible to actually have something secure and truly hidden like this. But I guess it won’t be plain text in the code editor.