Is it possible to deploy backend on separate server and front end on another?
As i understand, its all API communications. So it should be possible to deploy front end separate from DB ?
Is it possible to deploy them both separately?
Is it possible to deploy backend on separate server and front end on another?
As i understand, its all API communications. So it should be possible to deploy front end separate from DB ?
Is it possible to deploy them both separately?
It’s theoretically possible but there’s no officially supported way of doing it for the moment.
To help us understand how to prioritize this functionality, it would help to understand specifically what problem you’re trying to solve by deploying in that way?
We cannot expose application connected to DB directly to external users.
There is need to deploy front end in separate environment which will just communicate with backend with API. (Thats what we do in Hilla with Spring Boot but monolithic app)
We can expose the app directly to external world, but then there are security risk as app connected to DB is exposed.
Customers might be ok exposing few api endpoints to external world. And then that external app should only use exposed APIs.
I might be thinking wrong. Please correct me
If there is a way to get final generated react app and just deploy that even on static host with right backend URL configured should work.
Going forward, with new expo architecture, i am very much interested in having hilla as native app. Since it works very close to how JS works.
So we can just release front end as native app and backend is internal with api exposed.
I quite don’t understand you here… even when you split the frontend part from Hilla… you still have the exact same problem as before because the hilla backend has so be accessible to the frontend to work. You could theoretically encapsulate/delegate all calls within your hilla app to other Microservices - which handles the DB calls - to fulfill your security requirements… but it won’t work by “just” deploying hilla’s frontend somewhere else.