gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
28 stars 7 forks source link

Make 'Sites' the default webserver app #867

Closed James-Mart closed 1 month ago

James-Mart commented 2 months ago

Description

This PR makes the Sites app the default server for storing/serving UI artifacts, instead of requiring the same storeSys boilerplate to be used within every app.

Accordingly, both the package infra and psibase CLI tool were updated to call storeSys on sites.

Furthermore, I needed to add a Sites plugin to accommodate the Branding app, which was previously calling its own storeSys action manually.

I removed the storageInterface, WebContentRow, and serveContent as interfaces, since they are no longer needed.

Docs changes

I also updated StorageInterface docs, CLI docs, and package support docs.

Benefits