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;
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 fromapplication.properties
.The generated code should be placed in
frontend/connect-client.ts
and look like this