diff --git a/deployment/src/main/java/io/quarkiverse/statiq/deployment/StatiqProcessor.java b/deployment/src/main/java/io/quarkiverse/statiq/deployment/StatiqProcessor.java index acf63e9c..cea5686c 100644 --- a/deployment/src/main/java/io/quarkiverse/statiq/deployment/StatiqProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/statiq/deployment/StatiqProcessor.java @@ -73,6 +73,7 @@ void initHandler(BuildProducer routes, final RouteBuildItem route = nonApplicationRootPath.routeBuilder() .management() + .blockingRoute() .route("statiq/generate") .handler(recorder.createGenerateHandler()) .build(); diff --git a/runtime/src/main/java/io/quarkiverse/statiq/runtime/devui/StatiqJsonRPCService.java b/runtime/src/main/java/io/quarkiverse/statiq/runtime/devui/StatiqJsonRPCService.java index ea381af0..d16b8c64 100644 --- a/runtime/src/main/java/io/quarkiverse/statiq/runtime/devui/StatiqJsonRPCService.java +++ b/runtime/src/main/java/io/quarkiverse/statiq/runtime/devui/StatiqJsonRPCService.java @@ -9,7 +9,7 @@ import io.quarkiverse.statiq.runtime.StatiqPage; import io.quarkiverse.statiq.runtime.StatiqPages; import io.quarkus.arc.All; -import io.smallrye.common.annotation.NonBlocking; +import io.smallrye.common.annotation.Blocking; @ApplicationScoped public class StatiqJsonRPCService { @@ -21,7 +21,7 @@ public class StatiqJsonRPCService { @Inject StatiqGenerator generator; - @NonBlocking + @Blocking public List getPages() { return StatiqPages.merge(statiqPages); }