mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-11 15:26:19 +03:00
Merge pull request #440 from wasp-lang/martijn-no-env-in-build
When we build, do not copy .env. Fixes #413
This commit is contained in:
commit
f8ddebfb0f
@ -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