Introducing the Strife toolbar
- New
Editors who browse your public site can now open the page they are looking at directly in Strife. A small island at the right edge of the page unfolds to Edit in Strife. Visitors never see it, and nothing runs on your server.
Two lines in your layout, no middleware and no props:
<strife-toolbar></strife-toolbar>
<script>import '@strifeapp/strife/toolbar-element'</script>Strife resolves the team from the page's host and finds the document behind the URL on its own. A browser is connected once, by opening a page from Studio's play button, and from then on the toolbar renders there and only there. The cookie it sets carries no privileges. Opening Strife still goes through your own login and team membership.
Requires @strifeapp/strife 1.11.0 or later. The developer guide covers the connect model, the optional attributes and registered domains.