You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup my site navigation code using astro middleware to make it accessible sitewide via Astro.locals. Astro.locals is constant once the middleware is run - so I am wondering if it would be possible to define the Astro.locals constant inside the live editor.
This would also prove useful as a workaround for #154 - allowing collections information to be accessed within bookshop components in the live editor. I wouldn't expect the collections information to update live, only at build time.
The text was updated successfully, but these errors were encountered:
I have setup my site navigation code using astro middleware to make it accessible sitewide via Astro.locals. Astro.locals is constant once the middleware is run - so I am wondering if it would be possible to define the Astro.locals constant inside the live editor.
This would also prove useful as a workaround for #154 - allowing collections information to be accessed within bookshop components in the live editor. I wouldn't expect the collections information to update live, only at build time.
The text was updated successfully, but these errors were encountered: