mcollovati / quarkus-hilla

A Quarkus extension to run Hilla applications on Quarkus.
Apache License 2.0
11 stars 0 forks source link

Endpoints prefix is not configurable through application.properties #114

Open mcollovati opened 1 year ago

mcollovati commented 8 months ago

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;
mcollovati commented 8 months ago

Related Hilla issue https://github.com/vaadin/hilla/issues/148