[DEPRECATE] Warning for PUBLIC_DIR environment variable (#938)
parent
b264e63235
commit
0f100d4f7b
|
@ -24,11 +24,6 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi
|
||||||
embeddedAssets := "/public_html"
|
embeddedAssets := "/public_html"
|
||||||
rootFiles := []string{"favicon.ico", "manifest.json", "robots.txt"}
|
rootFiles := []string{"favicon.ico", "manifest.json", "robots.txt"}
|
||||||
|
|
||||||
// TODO: Remove in v4.18.0.
|
|
||||||
if os.Getenv("PUBLIC_DIR") != "" {
|
|
||||||
logging.Logger().Warn("PUBLIC_DIR environment variable has been deprecated, assets are now embedded.")
|
|
||||||
}
|
|
||||||
|
|
||||||
r := router.New()
|
r := router.New()
|
||||||
r.GET("/", ServeIndex(embeddedAssets, configuration.Server.Path))
|
r.GET("/", ServeIndex(embeddedAssets, configuration.Server.Path))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue