File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const { withSentryConfig } = require ( '@sentry/nextjs' ) ;
1+ import { withSentryConfig } from '@sentry/nextjs' ;
22
33const ContentSecurityPolicy = `
44 default-src 'self';
@@ -44,6 +44,8 @@ const securityHeaders = [
4444
4545/** @type {import('next').NextConfig } */
4646const 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 ] ;
You can’t perform that action at this time.
0 commit comments