MystenLabs / walrus-sites

Walrus Sites: Decentralized Websites using Sui and Walrus.
https://docs.walrus.site/walrus-sites/intro.html
Apache License 2.0
17 stars 16 forks source link

[Feature]: Implement a server-side portal - SE-738 #123

Closed Tzal3x closed 2 weeks ago

Tzal3x commented 1 month ago

Description

The solution will have the core functionality of the service-worker, but this time on the server.

A similar implementation was done to branch gg/dirty/server-side-portal, using blocksite.net with vercel edge-middleware.

Benefits of this solution include:

Note: We will still support the hybrid service worker solution, therefore we will need a common library that will be shared by both approaches.

Tasks:

Component

portal

Code of Conduct

giac-mysten commented 1 month ago

Additonal advantage: the sites become crawlable by standard scripts without the need of a full browser.

giac-mysten commented 1 month ago

Maybe as a sub-issue: Can we have a combined portal that decides whether to serve the service worker or the content directly depending on the user agent/ability to install SWs?

This should be possible on the portal server by either:

This would allow us to:

Tzal3x commented 1 month ago

Closed the PR to make multiple smaller ones.

giac-mysten commented 2 weeks ago

@Tzal3x can we close this issue?

Tzal3x commented 2 weeks ago

@Tzal3x can we close this issue?

Yes! Closing it now 👍