Skip to content

Commit 3c834ac

Browse files
committed
add env
1 parent 9cdf9f2 commit 3c834ac

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dev-packages/e2e-tests/test-applications/cloudflare-hono/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Env, Hono } from 'hono';
1+
import { Hono } from 'hono';
22
import * as Sentry from '@sentry/cloudflare';
33

44
const app = new Hono();
@@ -27,7 +27,7 @@ app.notFound(ctx => {
2727

2828
export default Sentry.withSentry(
2929
(env: Env) => ({
30-
dsn: env.E2E_TEST_DSN,
30+
dsn: env?.E2E_TEST_DSN,
3131
tracesSampleRate: 1.0,
3232
}),
3333
app,

dev-packages/e2e-tests/test-applications/cloudflare-hono/wrangler.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ name = "cloudflare-hono"
22
main = "src/index.ts"
33
compatibility_date = "2023-10-30"
44
compatibility_flags = ["nodejs_compat"]
5+
6+
# [vars]
7+
# E2E_TEST_DSN = ""

0 commit comments

Comments
 (0)