Endpoints prefix is not configurable through application.properties
mcollovati opened this issue · 3 comments
mcollovati commented
Endpoints prefix is not configurable through application.properties
mcollovati commented
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
Related Hilla issue vaadin/hilla#148
github-actions commented
This issue has been resolved in 24.6.0-alpha1
(Release
Notes)