kitlangton / zio-app

Quickly create and develop full-stack Scala apps with ZIO and Laminar.
124 stars 33 forks source link

Support for root path #36

Closed Marc-Ducret closed 2 years ago

Marc-Ducret commented 2 years ago

Here are the changes required for having the ability to host a zio-app behind a reverse proxy on a specific path. For example https://host.com/path/ where https://host.com/other/ would be a different application on a different server.

Only the changes for the zio-app library are included : a fully functional solution also requires modifying the vite.config.js in the g8 template.

Marc-Ducret commented 2 years ago

Hello @kitlangton, Do you think this feature would fit zio-app? Otherwise, we will probably have to fork and publish ourselves as this is something that we really need. Thanks!

kitlangton commented 2 years ago

Ah, yes! This seems totally fine. Apologies for the delay, I just missed this PR. Eventually, I'll likely add the ability to hit a completely separate host as well. But yeah, let's merge :)

Marc-Ducret commented 2 years ago

Thanks a lot!