mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 19:29:17 +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