diff --git a/cmd/dex/serve.go b/cmd/dex/serve.go index bd7869c4..1960d101 100644 --- a/cmd/dex/serve.go +++ b/cmd/dex/serve.go @@ -523,4 +523,8 @@ func applyConfigOverrides(options serveOptions, config *Config) { if options.grpcAddr != "" { config.GRPC.Addr = options.grpcAddr } + + if config.Frontend.Dir == "" { + config.Frontend.Dir = os.Getenv("DEX_FRONTEND_DIR") + } }