Skip to content

Commit 603492c

Browse files
committed
fix: nextjs commonjs issues
1 parent 5e5a797 commit 603492c

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import("next").NextConfig} */
22
const config = {};
33

4-
import { withSentryConfig } from '@sentry/nextjs';
4+
const { withSentryConfig } = require('@sentry/nextjs');
55

6-
export default withSentryConfig(config, {
6+
module.exports = withSentryConfig(config, {
77
disableLogger: true,
88
});

dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "next-orpc",
33
"version": "0.1.0",
44
"private": true,
5-
"type": "module",
65
"scripts": {
76
"build": "next build",
87
"dev": "next dev -p 3030",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
await import('./src/env.js');
1+
require('./src/env.js');
22

33
/** @type {import("next").NextConfig} */
44
const config = {};
55

6-
import { withSentryConfig } from '@sentry/nextjs';
6+
const { withSentryConfig } = require('@sentry/nextjs');
77

8-
export default withSentryConfig(config, {
8+
module.exports = withSentryConfig(config, {
99
disableLogger: true,
1010
silent: true,
1111
});

dev-packages/e2e-tests/test-applications/nextjs-t3/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "t3",
33
"version": "0.1.0",
44
"private": true,
5-
"type": "module",
65
"scripts": {
76
"build": "next build",
87
"clean": "npx rimraf node_modules pnpm-lock.yaml",

0 commit comments

Comments
 (0)