From 2d3b117c6adb0e41052bbaddc80701309193a609 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 19 Apr 2026 20:18:14 +0000 Subject: [PATCH 1/2] feat: add Sentry.io error monitoring to main map and 19hz map Agent-Logs-Url: https://github.com/ProLoser/funcheapmap/sessions/5d709fde-8f61-445a-95dc-2d4bb488439c Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com> --- .env.example | 3 ++- .github/workflows/deploy.yml | 2 ++ 19hz/index.html | 6 ++++++ index.html | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 690166c..4393b17 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ APIFY_TOKEN=apify_api_1234567890 GOOGLE_TOKEN=your_google_maps_api_key_here SPOTIFY_CLIENT_ID=your_spotify_client_id_here -SPOTIFY_CLIENT_SECRET=your_spotify_client_secret_here \ No newline at end of file +SPOTIFY_CLIENT_SECRET=your_spotify_client_secret_here +SENTRY_DSN=https://your_key@oXXXXXX.ingest.sentry.io/XXXXXXX \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 27999ba..23c478f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,12 +20,14 @@ jobs: GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }} SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN }} run: | sed -i "s/__APIFY_TOKEN__/${APIFY_TOKEN}/g" map.js 19hz/map.js sed -i "s/__GOOGLE_TOKEN__/${GOOGLE_TOKEN}/g" map.js 19hz/map.js sed -i "s/__GOOGLE_TOKEN__/${GOOGLE_TOKEN}/g" index.html 19hz/index.html sed -i "s/__SPOTIFY_CLIENT_ID__/${SPOTIFY_CLIENT_ID}/g" 19hz/map.js sed -i "s/__SPOTIFY_CLIENT_SECRET__/${SPOTIFY_CLIENT_SECRET}/g" 19hz/map.js + sed -i "s/__SENTRY_DSN__/${SENTRY_DSN}/g" index.html 19hz/index.html - uses: JamesIves/github-pages-deploy-action@v4 with: folder: . diff --git a/19hz/index.html b/19hz/index.html index 8a38fcc..9b33c17 100644 --- a/19hz/index.html +++ b/19hz/index.html @@ -87,6 +87,12 @@ + + + + + + + +