-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epic: Allow Kobweb to work in cases where it doesn't own the server #22
Comments
This should make it possible for users to export their site in a format easy to deploy on a static hosting site, e.g. Netlify This disables some of the features that make Kobweb powerful (e.g. dynamic routes and server API routes), but for many use cases, e.g. portfolios or blog sites, this is fine. Bug #22
This should make it possible for users to export their site in a format easy to deploy on a static hosting site, e.g. Netlify This disables some of the features that make Kobweb powerful (e.g. dynamic routes and server API routes), but for many use cases, e.g. portfolios or blog sites, this is fine. Bug #22
Note that a "workaround" for people running their own servers is to serve the Kobweb site themselves.
|
I already use Kobweb on the client side - it is great :) |
@NorbertSandor hey, since you have a real case, I have a question for you. If I allowed you to set up my Kobweb server to act as a proxy for your server, would that work for you? Getting live reloading to work for your custom server probably won't ever happen (getting it right takes a fair bit of custom code, see here which if you dig in does some fancy classloader tricks and makes some assumptions). That said, if I add proxy support to Kobweb servers, you could start up a Kobweb server and ALSO spin up your custom server, and have Kobweb configured to point at it. If you rebuild / restart your server, then you kind of get a live reloading experience, as the existing Kobweb server will just keep delegating to whatever is running. |
This is how I currently use the Webpack Devserver:
So currently my Kotlin/JS webapp communicates directly only with the Devserver.
I see...
This is exactly how I currently use the Webpack Devserver. Just one question: wouldn't it be really big work to implement a HTTP+WS proxy from stratch? Another idea has just popped in my head, namely to avoid HTTP/WS proxying entirely:
The reason I don't want you to implement this proxying functionality right now is because I'm not sure that I can successfully convert my app to Kobweb, and I don't want you to work unnecessarily. It is because my biggest problem is not the proxying: my webapp owns the entire application logic, starting from a But thanks for the insights, and giving me the above idea :) |
To check off items on this list, they should both be supported AND documented
Static support
These items probably just need files to be exported a certain way
Dynamic support
These items probably need logic currently backed into the
kobweb/backend
codebase refactored out into a shareable JVM library and then implemented per targetOther
I'm not familar with these technologies at this point so they will require a bit more investigation to categorize / understand properly
Original comment:
The text was updated successfully, but these errors were encountered: