Keith Miller
01/04/2023, 12:14 AMKeith Miller
01/04/2023, 3:03 AM.env
files but that's not gonna work with a static siteCLOVIS
01/04/2023, 8:58 AMdocument.location
to know where you're getting served from
• to add more information: have a /config
endpoint on the server that allows the client to find out
Both of these feel more like workarounds than proper solutions thoughturansky
01/04/2023, 11:18 AMstring-replace-loader
?Keith Miller
01/04/2023, 4:36 PMdocument.location
trick as the api is going to be on a server somewhere elseKeith Miller
01/04/2023, 4:46 PMwebpack.config.js
when building with gradle? If so then we could pass that in when we're building in our CI jobturansky
01/04/2023, 4:48 PMstring-replace-loader
Keith Miller
01/04/2023, 4:49 PMKeith Miller
01/04/2023, 4:52 PMKeith Miller
01/04/2023, 10:25 PMargs.plusAssign(listOf("--env", "buildMode=$buildMode"))