Does anybody know how I can grab an environment variable in Swift?
Does anybody know how I can grab an environment variable in Swift?
A Vapor specific solution:
From the code which Vapor automatically A Vgenerates as a project template:
let variable = Environment.get("VARIABLE") ?? "or-the-dafault"