chore: put temetry disabling in build script

This commit is contained in:
Ayo Ayco 2025-01-27 22:01:05 +01:00
parent 2a687a8628
commit 704d043a26
2 changed files with 1 additions and 4 deletions

View file

@ -8,9 +8,6 @@ secrets:
environment: environment:
NETLIFY_SITE_ID: d48d0f43-25b7-4d03-bbd2-b19ed09ea063 NETLIFY_SITE_ID: d48d0f43-25b7-4d03-bbd2-b19ed09ea063
tasks: tasks:
- disable-telemetry: |
cd guides
npx astro telemetry disable
- install-deps: | - install-deps: |
cd guides cd guides
pnpm i pnpm i

View file

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"build": "astro build", "build": "astro telemetry disable && astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"deploy": "netlify deploy --site=$NETLIFY_SITE_ID --dir=dist --prod" "deploy": "netlify deploy --site=$NETLIFY_SITE_ID --dir=dist --prod"