• cr1cket@sopuli.xyz
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    Oh wow.

    That looks like an overly complicated solution to a problem that doesn’t exist. Synching stuff that is in git? Why not just use… git? Also npm… and the example has an env var named “DB_PASS” in it. You never put passwords in version control.

    • dragonfly4933@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      4
      ·
      17 hours ago

      It is generally considered a bad idea to use envs for passing secrets in general since envs for process n are available to other processes which have access and permission.

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    22 hours ago

    The best way to manage environment variables: don’t use environment variables.

    • PolarKraken@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      18 hours ago

      What do you do instead for dynamic values that are needed at runtime and inappropriate to check in to version control?

  • chonkyninja@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    1 day ago

    Lmao, use Nix instead, or if that’s too complicated use DevBox.

    Also, nobody with more than 0 brain cells will pay for this trash.