mcollovati/quarkus-hilla

Endpoints prefix is not configurable through application.properties

mcollovati opened this issue · 3 comments

Endpoints prefix is not configurable through application.properties

Currently, the prefix is hard-coded in Hilla TypeScript client.
Until this is fixed in Hilla, we can consider to add to deployment module a CodeGenProvider that generates the client typescript code with the prefix from application.properties.

The generated code should be placed in frontend/connect-client.ts and look like this

import { ConnectClient as ConnectClient_1 } from "@hilla/frontend";
const client_1 = new ConnectClient_1({ prefix: "abcd" });
export default client_1;

Related Hilla issue vaadin/hilla#148

This issue has been resolved in 24.6.0-alpha1 (Release
Notes
)