Added CHECKPOINT_DISABLE=1 to Wasp CLI to prevent Prisma errors (#2089)

* Update Main.hs

* fix
This commit is contained in:
Martin Šošić 2024-06-10 13:30:12 +02:00 committed by GitHub
parent 3679ab6ed4
commit ea0a0d98cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,13 @@ setDefaultCliEnvVars = do
mapM_ (uncurry Env.setEnv) cliEnvVars
where
cliEnvVars :: [(String, String)]
cliEnvVars = [("PRISMA_HIDE_UPDATE_MESSAGE", "true")]
cliEnvVars =
[ ("PRISMA_HIDE_UPDATE_MESSAGE", "true"),
-- NOTE: We were getting errors from Prisma v4 related to their Checkpoint system
-- (which checks for updates that we don't want anyway), so now by default
-- we turn it off. Once we switch to Prisma v5, try removing this.
("CHECKPOINT_DISABLE", "1")
]
{- ORMOLU_DISABLE -}
printUsage :: IO ()