We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6830f73 commit f156d7cCopy full SHA for f156d7c
.github/workflows/sentry-release.yml
@@ -2,7 +2,7 @@ name: Sentry Release
2
3
on:
4
push:
5
- branches: [main]
+ branches: ["main"]
6
7
jobs:
8
sentry_release:
functions/_middleware.js
@@ -1,13 +1,14 @@
1
import Toucan from "toucan-js";
const errorHandler = async (event) => {
- const {next, request, env} = event;
+ const {next, env} = event;
const sentry = new Toucan({
dsn: env.SENTRY_DSN,
// Includes 'waitUntil', which is essential for Sentry logs to be delivered. Also includes 'request' -- no need to set it separately.
context: event,
9
allowedHeaders: /(.*)/,
10
env: "production",
11
+ release: env.CF_PAGES_COMMIT_SHA,
12
});
13
event.data.sentry = sentry;
14
try {
0 commit comments