Wednesday November 3, 2021; 11:37 AM GMT+0100
  • Correction 13 November: you shouldn't use this for real secrets, since the root outline is not really hidden or secure. But for global variables that you don't mind having exposed it should be OK. Caveat emptor!#
  • My video demo yesterday revealed the URL of my Netlify build hook for all to see. It's now been changed, but I need not have revealed. Drummer has a root outline where global variables can be defined. #
  • So in the root outIine I can create an `env` object, and define an entry for `netlifyBuildHook` for the URL. (You have to use proper JavaScript object syntax, with brackets, colons and quotes.) #
  • The line of my build script can then be
    `"POST", root.env.netlifyBuildHook, true);`
    without revealing the actual URL. #

Last update: Sunday May 29, 2022; 10:10 AM GMT+0200.