Setting vaadin.endpoint.prefix

Setting the vaadin.endpoint.prefix is not changing the value of prefix in generated UI file.
connect-client.default.ts it still have prefix as “connect” whereas i set the prefix to api in application.yml

I have tried to delete both target and generated folder. I can manually change it. but dont want it to get overwritten everytime we rebuild.

If it’s just the prefix on the client side that is not configured properly, you should be able to work around it by changing the prefix from your frontend application code. Something like this:

import defaultClient from 'Frontend/generated/connect-client.default';
defaultClient.prefix = 'my/custom/connect';