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:
parent
3b80d480e5
commit
a050f3228a
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue