Skip to content

Commit d2776ec

Browse files
committed
feat(astro): enable client-side page transitions
1 parent 1fd7e32 commit d2776ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import { ClientRouter } from 'astro:transitions';
23
import { BRAND_CONFIG } from '@/data/brand';
34
import '@/styles/global.css';
45
import { withBase, withBaseIfRelative } from "@/components/utils/with-base";
@@ -143,6 +144,7 @@ const jsonLdString = JSON.stringify(jsonLd).replace(/<\/script/gi, '<\\/script')
143144

144145
<script type="application/ld+json" is:inline set:html={jsonLdString}></script>
145146

147+
<ClientRouter />
146148
<title>{fullTitle}</title>
147149
</head>
148150
<body class="flex h-full flex-col overflow-hidden bg-white text-secondary-900 antialiased">

0 commit comments

Comments
 (0)