To get an environment variable in Nim, you can use the getEnv procedure:
import os echo getEnv("SERVER_PORT")
Leave a comment