Skip to content

Commit

Permalink
fix: partytown config (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
lethang7794 authored Feb 22, 2025
1 parent a959390 commit ce14180
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ import { loadEnv } from "vite";
import partytown from "@astrojs/partytown";
const env = loadEnv(process.env.NODE_ENV, process.cwd(), "");


// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), icon(), partytown()],
// Deployments
site: env.PUBLIC_DOMAIN ? `https://${env.PUBLIC_DOMAIN}` : undefined,
base: env.PUBLIC_BASE_URL || ""
});
integrations: [
tailwind(),
icon(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
],
// Deployments
site: env.PUBLIC_DOMAIN ? `https://${env.PUBLIC_DOMAIN}` : undefined,
base: env.PUBLIC_BASE_URL || "",
});

0 comments on commit ce14180

Please sign in to comment.