From 6dea3ac96c059d8c2e902e49b442a8e7c024fb43 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 24 Feb 2026 16:26:11 -0700 Subject: [PATCH] Remove partytown --- astro.config.mjs | 7 ------- package.json | 1 - pnpm-lock.yaml | 26 -------------------------- src/layouts/Layout.astro | 24 ++++++++++++++++-------- 4 files changed, 16 insertions(+), 42 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index a036618..10896df 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,7 +3,6 @@ import { defineConfig } from "astro/config"; import vue from "@astrojs/vue"; import node from "@astrojs/node"; import tailwindcss from "@tailwindcss/vite"; -import partytown from "@astrojs/partytown"; const isDev = process.env.NODE_ENV === "development"; @@ -15,11 +14,6 @@ export default defineConfig({ }, integrations: [ vue(), - partytown({ - config: { - forward: ["umami.track"], - }, - }), ], security: { @@ -33,7 +27,6 @@ export default defineConfig({ resources: [ "'self'", "https://analytics.atri.dad", - "https://cloud.umami.is", ], }, directives: [ diff --git a/package.json b/package.json index 68035e7..2f2d013 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ }, "dependencies": { "@astrojs/node": "10.0.0-beta.5", - "@astrojs/partytown": "^2.1.4", "@astrojs/vue": "6.0.0-beta.1", "@fontsource-variable/inter": "^5.2.8", "@fontsource-variable/roboto-slab": "^5.2.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84c2768..6101f1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,6 @@ importers: '@astrojs/node': specifier: 10.0.0-beta.5 version: 10.0.0-beta.5(astro@6.0.0-beta.15(@types/node@25.3.0)(jiti@2.6.1)(lightningcss@1.31.1)(rollup@4.59.0)(typescript@5.7.3)(yaml@2.7.0)) - '@astrojs/partytown': - specifier: ^2.1.4 - version: 2.1.4 '@astrojs/vue': specifier: 6.0.0-beta.1 version: 6.0.0-beta.1(@types/node@25.3.0)(astro@6.0.0-beta.15(@types/node@25.3.0)(jiti@2.6.1)(lightningcss@1.31.1)(rollup@4.59.0)(typescript@5.7.3)(yaml@2.7.0))(jiti@2.6.1)(lightningcss@1.31.1)(vue@3.5.29(typescript@5.7.3))(yaml@2.7.0) @@ -68,9 +65,6 @@ packages: peerDependencies: astro: ^6.0.0-alpha.0 - '@astrojs/partytown@2.1.4': - resolution: {integrity: sha512-loUrAu0cGYFDC6dHVRiomdsBJ41VjDYXPA+B3Br51V5hENFgDSOLju86OIj1TvBACcsB22UQV7BlppODDG5gig==} - '@astrojs/prism@4.0.0-beta.2': resolution: {integrity: sha512-3snR85nTXnXvgmFJ43AacCQcylk+mpsiQ5Gmr9hcR5IrEA6+EvaYfaF9jlxZqJIZYey/9ubSRmaERtwDhV/FeA==} engines: {node: ^20.19.1 || >=22.12.0} @@ -716,11 +710,6 @@ packages: '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} - '@qwik.dev/partytown@0.11.2': - resolution: {integrity: sha512-795y49CqBiKiwKAD+QBZlzlqEK275hVcazZ7wBPSfgC23L+vWuA7PJmMpgxojOucZHzYi5rAAQ+IP1I3BKVZxw==} - engines: {node: '>=18.0.0'} - hasBin: true - '@rolldown/pluginutils@1.0.0-rc.2': resolution: {integrity: sha512-izyXV/v+cHiRfozX62W9htOAvwMo4/bXKDrQ+vom1L1qRuexPock/7VZDAhnpHCLNejd3NJ6hiab+tO0D44Rgw==} @@ -1307,10 +1296,6 @@ packages: domutils@3.2.2: resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} - dotenv@16.6.1: - resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==} - engines: {node: '>=12'} - dset@3.1.4: resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==} engines: {node: '>=4'} @@ -2377,11 +2362,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@astrojs/partytown@2.1.4': - dependencies: - '@qwik.dev/partytown': 0.11.2 - mrmime: 2.0.1 - '@astrojs/prism@4.0.0-beta.2': dependencies: prismjs: 1.30.0 @@ -2913,10 +2893,6 @@ snapshots: '@polka/url@1.0.0-next.29': {} - '@qwik.dev/partytown@0.11.2': - dependencies: - dotenv: 16.6.1 - '@rolldown/pluginutils@1.0.0-rc.2': {} '@rolldown/pluginutils@1.0.0-rc.5': {} @@ -3560,8 +3536,6 @@ snapshots: domelementtype: 2.3.0 domhandler: 5.0.3 - dotenv@16.6.1: {} - dset@3.1.4: {} ee-first@1.1.1: {} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7b3fd6b..9a756b9 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -66,14 +66,22 @@ const isProd = import.meta.env.PROD; {metaTitle} { isProd && ( - ) }