Do the thing with the postgres url

This commit is contained in:
Joseph Ferano 2022-07-21 15:20:10 +07:00
parent f921d7b123
commit 9e4a37baab

View File

@ -15,6 +15,8 @@ open Npgsql.FSharp
DotEnv.Load(DotEnvOptions(envFilePaths = [ "../.prod.env" ], overwriteExistingVars = false))
let connStr = Environment.GetEnvironmentVariable("DATABASE_URL")
.Replace("postgresql://", "postgres://")
.Replace("?sslmode=require", "")
let apiKey = Environment.GetEnvironmentVariable("API_KEY")
let validateApiKey (ctx : HttpContext) =