feat: add DEX_FRONTEND_DIR env var for setting the frontend dir

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-03-22 12:03:51 +01:00
parent 3b80d480e5
commit a050f3228a
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A

View file

@ -523,4 +523,8 @@ func applyConfigOverrides(options serveOptions, config *Config) {
if options.grpcAddr != "" { if options.grpcAddr != "" {
config.GRPC.Addr = options.grpcAddr config.GRPC.Addr = options.grpcAddr
} }
if config.Frontend.Dir == "" {
config.Frontend.Dir = os.Getenv("DEX_FRONTEND_DIR")
}
} }