Skip to content

Commit

Permalink
chore: skip 404 state (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto authored Nov 18, 2024
1 parent e60b376 commit 74a2b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.8.2
rev: v8.16.0
hooks:
- id: cspell
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
rev: v2.13.1-beta
hooks:
- id: hadolint
- repo: local
hooks:
- id: secretlint
- id: secretlint
name: secretlint
language: docker_image
entry: secretlint/secretlint:latest secretlint
3 changes: 3 additions & 0 deletions routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function ga4(
if (conn.url.pathname === "/healthz") {
return;
}
if (response.status === 404) {
return;
}

// Create basic report.
const measurementId = GA4_MEASUREMENT_ID;
Expand Down

0 comments on commit 74a2b5b

Please sign in to comment.