Skip to content

Commit adad5e3

Browse files
committed
Remove redundant comments
1 parent 2f88743 commit adad5e3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/nextjs/src/config/loaders/dataFetchersLoader.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ export default function wrapDataFetchersLoader(this: LoaderThis<LoaderOptions>,
137137
}
138138

139139
if (hasDefaultExport(ast)) {
140-
// We don't import the `withSentryGetInitialProps` wrapper from `@sentry/nextjs` since `getInitialProps` can run
141-
// on both the server and the client and we don't want to have side effects from the server SDK on the client and
142-
// vice versa. By importing the loader directly we avoid the side effects.
143140
outputFileContent += `
144141
import { default as _sentry_default } from "${this.resourcePath}?sentry-proxy-loader";
145142
import { withSentryGetInitialProps } from "@sentry/nextjs";

0 commit comments

Comments
 (0)