UNPKG
astro-tina
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
Support contextual editing with TinaCMS in static Astro sites.
astro-tina
/
dist
/
index.js
13 lines
(12 loc)
•
327 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
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, }); }, }, });