Ensure webui static resources folder exists before serving it (#1756)

When the webUI got opened before the setup was completed, the missing folder caused an exception and broke the javalin server.
In that case, even after the webui setup completed, the server just returned the index.html for every path
This commit is contained in:
schroda
2025-11-01 19:30:54 +01:00
committed by GitHub
parent ebcb9a9562
commit fb41ad38f6

View File

@@ -160,6 +160,8 @@ object WebInterfaceManager {
return
}
File(applicationDirs.webUIServe).mkdirs()
config.staticFiles.add { staticFiles ->
if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized()
// Use canonical path to avoid Jetty alias issues