@VioneT Would it be possible to have environment variables in Perchance one day?

    • Cocell@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      8 days ago

      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.

      Whew!

      • TAPgiles@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        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.