Skip to content

Commit 9cdf9f2

Browse files
committed
add env
1 parent b10aa1d commit 9cdf9f2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Generated by Wrangler on Mon Jul 29 2024 21:44:31 GMT-0400 (Eastern Daylight Time)
2+
// by running `wrangler types`
3+
4+
interface Env {
5+
E2E_TEST_DSN: '';
6+
}

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 { Hono } from 'hono';
1+
import { Env, Hono } from 'hono';
22
import * as Sentry from '@sentry/cloudflare';
33

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

2828
export default Sentry.withSentry(
29-
env => ({
29+
(env: Env) => ({
3030
dsn: env.E2E_TEST_DSN,
3131
tracesSampleRate: 1.0,
3232
}),

0 commit comments

Comments
 (0)