Skip to content

Commit

Permalink
Hotfix: Serve static .gitsha in cloudflare worker (#7781)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Mar 11, 2024
1 parent ca152db commit 0cf37b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/web/src/ssr/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ addEventListener('fetch', (event) => {
const sentry =
typeof SENTRY_DSN !== 'undefined'
? new Toucan({
dsn: SENTRY_DSN,
context: event,
request: event.request
})
dsn: SENTRY_DSN,
context: event,
request: event.request
})
: null
try {
event.respondWith(handleEvent(event))
Expand Down Expand Up @@ -81,6 +81,6 @@ function isAssetUrl(url) {
pathname.startsWith('/manifest.json') ||
pathname.startsWith('/.well-known') ||
pathname.startsWith('/documents') ||
pathname.startsWith('/.version')
pathname.startsWith('/.gitsha')
)
}

0 comments on commit 0cf37b7

Please sign in to comment.