Rename the UI passthrough dir flag/env var (#1600)
This puts it more in line with other upcoming options that use "dir" instead of "directory" (plus it's easier to type), and makes it clear that this directory and the passthrough behavior is related to the UI as opposed to other upcoming items.
This commit is contained in:
1 parent
08a0f32a6e
commit
c05324282f
7 files changed
+19
-19
No files matched your search
@@ -16,8 +16,8 @@ func init() {
|
||||
|
||||
func handleUiWithAssets(c *Controller) http.Handler {
|
||||
var nextHandler http.Handler
|
||||
if c.conf.RawConfig.PassthroughDirectory != "" {
|
||||
nextHandler = devPassthroughHandler(c.conf.RawConfig.PassthroughDirectory)
|
||||
if c.conf.RawConfig.DevUiPassthroughDir != "" {
|
||||
nextHandler = devUiPassthroughHandler(c.conf.RawConfig.DevUiPassthroughDir)
|
||||
} else {
|
||||
nextHandler = ui.Handler()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user