Skip to content

Commit

Permalink
chore: skip 404 state
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Nov 18, 2024
1 parent 45aef3d commit 4b682b1
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 4b682b1

Please sign in to comment.