favicon not visible in production mode

Hello,

I have a webapp with vaadin 14.3.3 and a spring-boot backend running in docker.

in development mode, the favicon for my app gets displayed properly. If I build the app in production mode ./mvnw spring-boot:build-image -Pproduction and then docker-compose build && docker-compose up instead of my icon, I see a blue square with a white circle inside.

I’ve seen that others had similar problems in the past, so I tried to put the icon.png in different directories, but couldn’t resolve it.
I tried the following directories:

src/main/resources/icons/icon.png
src/main/resources/META-INF/icons/icon.png
src/main/webapp/icons/icon.png    <-- this works well in development mode

Which is the correct directory? Where does this blue square with the white circle come from? so I can just replace (wherever it is) that blue/white circle icon with mine.

Hi Philipp,

try with src/main/resources/META-INF/resources/icons/icon.png

HTH

Marco

BTW the blue/white icon is in flow-server-x.y.z.jar jar, com/vaadin/flow/server/default-logo.png

Marco Collovati:
Hi Philipp,

try with src/main/resources/META-INF/resources/icons/icon.png

HTH

Marco

Thank you so much, that did the job.