drone exposes secrets as uppercase keys. If your prefix was lowercase (e.g: dev) it would cause the prefixed form of the variables not to be found (e.g: dev_API_SERVER) My change uppercases the prefixed form (e.g: DEV_API_SERVER) as expected. It also breaks up debug() into debugEnv() and debug() as it was useful to have the environment printed out before any processing was attempted to determine the bug.
drone exposes secrets as uppercase keys. If your prefix was lowercase (e.g:
dev
) it would cause the prefixed form of the variables not to be found (e.g:dev_API_SERVER
) My change uppercases the prefixed form (e.g:DEV_API_SERVER
) as expected. It also breaks updebug()
intodebugEnv()
anddebug()
as it was useful to have the environment printed out before any processing was attempted to determine the bug.