File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/platforms/javascript/guides/remix/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ import { instrumentBuild } from "@sentry/remix/cloudflare";
4949// Virtual entry point for the app
5050import * as remixBuild from ' virtual:remix/server-build' ;
5151
52- // Instrument your server build with Sentry
53- // and use the instrumented build inside the fetch handler
54- const instrumentedBuild = instrumentBuild (remixBuild )
55-
5652/**
5753 * Export a fetch handler in module format.
5854 */
@@ -73,6 +69,10 @@ export default {
7369 context: executionContext ,
7470 },
7571 async () => {
72+ // Instrument your server build with Sentry
73+ // and use the instrumented build inside the fetch handler
74+ const instrumentedBuild = instrumentBuild (remixBuild )
75+
7676 // request handling logic
7777 }
7878 );
You can’t perform that action at this time.
0 commit comments