Skip to content

Commit 7bbd73d

Browse files
committed
Forward variables for partytown
1 parent 910f158 commit 7bbd73d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

astro.config.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ import partytown from '@astrojs/partytown';
99
// https://astro.build/config
1010
export default defineConfig({
1111
site: 'https://nghtctrl.github.io',
12-
integrations: [react(), mdx(), icon(), partytown()],
12+
integrations: [
13+
react(),
14+
mdx(),
15+
icon(),
16+
partytown({
17+
config: {
18+
forward: ['dataLayer.push'],
19+
},
20+
}),
21+
],
1322
vite: {
1423
plugins: [tailwindcss()],
1524
},

0 commit comments

Comments
 (0)