I look for way in Vaadin Flow & Spring Boot to set the main theme at build time or via properties, but it is not working. Any ideas how it can be achieved?
Background: I have an application which I like to have the same code but deployed on different domains with different theme.
I tried to use a property from Spring Boot "application.properties" like "theme=my-vaadin-app", but this seems not to be supported. So any other way to set the theme at build or deploy time?
@SpringBootApplication
@Theme(value = "my-vaadin-app") // the usual way
@Theme(vaule = "${thene}") // NOT Working
public class MyVaadinApplication implements AppShellConfigurator {
private static final long serialVersionUID = 1L;
public static void main(String[] args) {
SpringApplication.run(MyVaadinApplication .class, args);
}