Add partytown (WIP)
This commit is contained in:
parent
d58e31e8d9
commit
5371feea2d
5 changed files with 4368 additions and 6081 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import node from "@astrojs/node";
|
||||
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import partytown from '@astrojs/partytown';
|
||||
|
||||
export default defineConfig({
|
||||
site: "https://aluu.xyz",
|
||||
|
|
@ -16,6 +16,9 @@ export default defineConfig({
|
|||
defaultLocale: "en",
|
||||
},
|
||||
}),
|
||||
partytown({
|
||||
forward: ['dataLayer.push'],
|
||||
}),
|
||||
],
|
||||
output: "hybrid",
|
||||
adapter: node({
|
||||
|
|
|
|||
1
index.js
1
index.js
|
|
@ -13,7 +13,6 @@ import { existsSync } from "fs";
|
|||
import dotenv from "dotenv";
|
||||
import cookieParser from "cookie-parser";
|
||||
import wisp from "wisp-server-node";
|
||||
import fetch from "node-fetch";
|
||||
import { masqrCheck } from "./masqr.js";
|
||||
dotenv.config();
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"@astrojs/partytown": "^2.1.1",
|
||||
"@astrojs/sitemap": "^3.1.4",
|
||||
"@mercuryworkshop/bare-mux": "^1.0.9",
|
||||
"@mercuryworkshop/epoxy-transport": "^1.1.0",
|
||||
|
|
@ -24,7 +25,6 @@
|
|||
"cookie-parser": "^1.4.6",
|
||||
"dotenv": "^16.4.5",
|
||||
"express": "^4.19.2",
|
||||
"node-fetch": "^3.3.2",
|
||||
"notyf": "^3.10.0",
|
||||
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
|
||||
"wisp-server-node": "^1.0.6"
|
||||
|
|
|
|||
10323
pnpm-lock.yaml
generated
10323
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -54,8 +54,8 @@ const { title, optionalPreloads } = Astro.props;
|
|||
return <link rel="preload" href={item.href} as={item.as} />;
|
||||
})
|
||||
}
|
||||
<script src="https://www.googletagmanager.com/gtag/js?id=G-P1JX4G9KSF" is:inline></script>
|
||||
<script is:inline>
|
||||
<script src="https://www.googletagmanager.com/gtag/js?id=G-P1JX4G9KSF" type="text/partytown" is:inline></script>
|
||||
<script type="text/partytown" is:inline>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
window.dataLayer.push(arguments);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue