Using web-application-type: reactive with Flow throws exception

Am I able to use webflux with Flow? I need to have some reactive rest endpoints, so I use reactive application type, but it causes

Field context in com.vaadin.flow.spring.SpringBootAutoConfiguration required a bean of type 'org.springframework.web.context.WebApplicationContext' that could not be found.

Vaadin only runs on Servlet but not on WebFlux.

Is there a way to combine reactive rest endpoints with Vaadin? I found a pretty straightforward solution to just use servlet application with reactive endpoints, but I’m not sure if it’s the best thing I can do in this situation.

Async servlets are also a good choice. If you’re using Java 21 or newer, then you could also configure the servlet container to use virtual threads and then you can just do everything in a synchronous way without worries.