Skip to content

Commit abacd56

Browse files
committed
refactor: update Next.js config to ES module syntax
1 parent 0b64cdd commit abacd56

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

next.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { withSentryConfig } = require('@sentry/nextjs');
1+
import { withSentryConfig } from '@sentry/nextjs';
22

33
const ContentSecurityPolicy = `
44
default-src 'self';
@@ -44,6 +44,8 @@ const securityHeaders = [
4444

4545
/** @type {import('next').NextConfig} */
4646
const nextConfig = {
47+
reactStrictMode: true,
48+
poweredByHeader: false,
4749
redirects: async () => {
4850
return [
4951
{
@@ -82,8 +84,6 @@ const nextConfig = {
8284
}
8385
]
8486
},
85-
poweredByHeader: false,
86-
reactStrictMode: true,
8787
async headers() {
8888
return [
8989
{
@@ -111,4 +111,4 @@ const nextConfigByEnv = {
111111
development: withSentryConfig(nextConfig, sentryBuildOptions)
112112
};
113113

114-
module.exports = nextConfigByEnv[process.env.NODE_ENV];
114+
export default nextConfigByEnv[process.env.NODE_ENV];

0 commit comments

Comments
 (0)