From 8494403bad2ef83e5f376458f0779f151accdd2a Mon Sep 17 00:00:00 2001 From: Alan Barzilay Date: Mon, 23 Oct 2023 19:09:58 -0300 Subject: [PATCH] lets test partytown --- astro.config.mjs | 4 +++- package.json | 1 + src/components/Map.astro | 2 +- src/components/Table.astro | 2 +- src/components/Tooltip.astro | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 6016f82..eec4f26 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,8 +5,10 @@ import prefetch from "@astrojs/prefetch"; import sitemap from "@astrojs/sitemap"; import robotsTxt from "astro-robots-txt"; +import partytown from "@astrojs/partytown"; + // https://astro.build/config export default defineConfig({ - integrations: [tailwind(), astroI18next(), prefetch(), sitemap(), robotsTxt()], + integrations: [tailwind(), astroI18next(), prefetch(), sitemap(), robotsTxt(), partytown()], site: 'https://nabisaydoun.org/' }); \ No newline at end of file diff --git a/package.json b/package.json index fdc8564..af5bf0f 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "astro": "astro" }, "dependencies": { + "@astrojs/partytown": "^2.0.1", "@astrojs/prefetch": "^0.4.0", "@astrojs/sitemap": "^3.0.0", "@astrojs/tailwind": "^5.0.0", diff --git a/src/components/Map.astro b/src/components/Map.astro index 4bad0f6..d83c1b8 100644 --- a/src/components/Map.astro +++ b/src/components/Map.astro @@ -3,7 +3,7 @@ import SvgCemetery from "./SvgCemetery.astro"; import { t, changeLanguage } from "i18next"; --- -