Skip to content

Commit

Permalink
chore: failsafe UI conf file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Feb 29, 2024
1 parent 7f53fa0 commit 81bac41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func index(conf *config.Config) http.Handler {
// build UI config file from env variables
configFilename := path.Join(conf.UI.Directory, "config.js")
if err := conf.WriteUIConfigFile(configFilename); err != nil {
log.Fatal().Err(err).Str("filename", configFilename).Msg("failed to create UI config file")
log.Warn().Err(err).Str("filename", configFilename).Msg("unable to generate UI config file")
}
return http.FileServer(http.Dir(conf.UI.Directory))
}
Expand Down

0 comments on commit 81bac41

Please sign in to comment.