Skip to content
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

generate static web client when building to be hosted on free static page hosting providers #14892

Open
1 task
ch1p2 opened this issue Nov 5, 2024 · 2 comments
Labels
✨Feature This adds/improves/enhances a feature

Comments

@ch1p2
Copy link

ch1p2 commented Nov 5, 2024

Summary

since the frontend is completely static, we should generate a separately hostable web app when building

Purpose

currently the web client app server and the api server runs together, however, if the frontend web client is generated separately, it can be hosted on free static hosting platforms such as pages.dev and only the api server is hosted on your server. doing so can reduce the cost of server bandwidth

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@ch1p2 ch1p2 added the ✨Feature This adds/improves/enhances a feature label Nov 5, 2024
@kakkokari-gtyih
Copy link
Contributor

In fact, it is not completely static: depending on entities such as notes and users, the HTML itself sometimes contains tags like link that are referenced in lookups from other instances.

Also, if the same path is used, depending on the contents of the accept header, it may return HTML for the application or activity json, so it is not as easy as it sounds to extract the client app and serve from different location

@Mar0xy
Copy link
Contributor

Mar0xy commented Nov 8, 2024

like kakkokari said it isn't completely static due to various entities though another reason is simply the use of Vue as soon as stuff like Vue, Next.js and etc comes into play making something static is completely thrown out of the window as all those framework render a lot of stuff via JS live in the HTML constantly modifying it.

There are reasons why there are special frameworks for static sites like handlebars.js and etc as those compile the stuff on build directly into the site/js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

No branches or pull requests

3 participants