mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 17:44:21 +03:00
When we build, do not generate .env
This commit is contained in:
parent
0abefb460b
commit
cb33f2d545
@ -83,12 +83,13 @@ preCleanup _ outDir = do
|
||||
genDotEnv :: AppSpec -> Generator [FileDraft]
|
||||
genDotEnv spec = return $
|
||||
case AS.dotEnvFile spec of
|
||||
Just srcFilePath ->
|
||||
[ createCopyFileDraft
|
||||
(C.serverRootDirInProjectRootDir </> dotEnvInServerRootDir)
|
||||
srcFilePath
|
||||
]
|
||||
Nothing -> []
|
||||
Just srcFilePath
|
||||
| not $ AS.isBuild spec ->
|
||||
[ createCopyFileDraft
|
||||
(C.serverRootDirInProjectRootDir </> dotEnvInServerRootDir)
|
||||
srcFilePath
|
||||
]
|
||||
_ -> []
|
||||
|
||||
dotEnvInServerRootDir :: Path' (Rel C.ServerRootDir) File'
|
||||
dotEnvInServerRootDir = [relfile|.env|]
|
||||
|
Loading…
Reference in New Issue
Block a user