UNPKG

astro-tina

Version:

Support contextual editing with TinaCMS in static Astro sites.

13 lines (12 loc) 327 B
const { pathname: entrypoint } = new URL('./client-tina.js', import.meta.url); export default () => ({ name: 'tina-cms', hooks: { 'astro:config:setup': ({ addClientDirective }) => { addClientDirective({ name: 'tina', entrypoint, }); }, }, });