Skip to content

Commit

Permalink
Fixed static file handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Aug 9, 2021
1 parent 58d5ac9 commit f5b401a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ private Router initRouter() {

// Serve push javascript
StaticHandler vaadinStatic = StaticHandler.create("VAADIN/static");
StaticHandler metaInfVaadinStatic = StaticHandler.create("META-INF/resources/VAADIN/static");
StaticHandler metaInfVaadinStatic = StaticHandler.create("META-INF/VAADIN/static");
StaticHandler metaInfResourcesVaadinStatic = StaticHandler.create("META-INF/resources/VAADIN/static");

String pushJavascript = String.format(
"META-INF/resources/VAADIN/static/push/vaadinPush%s",
Expand All @@ -231,6 +232,7 @@ private Router initRouter() {
vaadinRouter.route("/VAADIN/build/*").handler(StaticHandler.create("META-INF/VAADIN/build"));
vaadinRouter.route("/VAADIN/static/*").handler(vaadinStatic);
vaadinRouter.route("/VAADIN/static/*").handler(metaInfVaadinStatic);
vaadinRouter.route("/VAADIN/static/*").handler(metaInfResourcesVaadinStatic);
vaadinRouter.routeWithRegex("^/themes\\/[\\s\\S]+?\\/").handler(metaInfVaadinStatic);
vaadinRouter.routeWithRegex("/VAADIN(?!/dynamic)/.*").handler(StaticHandler.create("VAADIN"));
vaadinRouter.route("/webroot/*").handler(StaticHandler.create("webroot"));
Expand Down

0 comments on commit f5b401a

Please sign in to comment.