@@ -2,74 +2,56 @@ import createBundleAnalyzer from "@next/bundle-analyzer";
2
2
import { createMDX } from "fumadocs-mdx/next" ;
3
3
4
4
const withAnalyzer = createBundleAnalyzer ( {
5
- enabled : process . env . ANALYZE === "true" ,
5
+ enabled : process . env . ANALYZE === "true" ,
6
6
} ) ;
7
7
8
8
const config = {
9
- reactStrictMode : true ,
10
- turbopack : {
11
- resolveExtensions : [ ".mdx" , ".tsx" , ".ts" , ".jsx" , ".js" , ".mjs" , ".json" ] ,
12
- rules : {
13
- "*.svg" : {
14
- loaders : [ "@svgr/webpack" ] ,
15
- as : "*.js" ,
16
- } ,
17
- } ,
18
- } ,
19
-
20
- pageExtensions : [ "ts" , "tsx" , "mdx" ] ,
21
-
22
- experimental : {
23
- useCache : true ,
24
- } ,
25
-
26
- logging : {
27
- fetches : {
28
- fullUrl : true ,
29
- } ,
30
- } ,
31
-
32
- webpack ( config ) {
33
- config . module . rules . push ( {
34
- test : / \. s v g $ / i,
35
- use : [ "@svgr/webpack" ] ,
36
- } ) ;
37
-
38
- config . resolve . extensionAlias = {
39
- ".js" : [ ".js" , ".ts" , ".tsx" ] ,
40
- } ;
41
-
42
- return config ;
43
- } ,
44
-
45
- headers : async ( ) => [
46
- {
47
- source : "/:path*" ,
48
- headers : [
49
- {
50
- key : "X-XSS-Protection" ,
51
- value : "1; mode=block" ,
52
- } ,
53
- {
54
- key : "Referrer-Policy" ,
55
- value : "strict-origin-when-cross-origin" ,
56
- } ,
57
- {
58
- key : "Strict-Transport-Security" ,
59
- value : "max-age=2592000" ,
60
- } ,
61
- {
62
- key : "X-Content-Type-Options" ,
63
- value : "nosniff" ,
64
- } ,
65
- {
66
- key : "Permissions-Policy" ,
67
- value :
68
- "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self" ,
69
- } ,
70
- ] ,
71
- } ,
72
- ] ,
9
+ reactStrictMode : true ,
10
+ pageExtensions : [ "ts" , "tsx" , "mdx" ] ,
11
+
12
+ logging : {
13
+ fetches : {
14
+ fullUrl : true ,
15
+ } ,
16
+ } ,
17
+
18
+ webpack ( config ) {
19
+ config . module . rules . push ( {
20
+ test : / \. s v g $ / i,
21
+ use : [ "@svgr/webpack" ] ,
22
+ } ) ;
23
+
24
+ return config ;
25
+ } ,
26
+
27
+ headers : async ( ) => [
28
+ {
29
+ source : "/:path*" ,
30
+ headers : [
31
+ {
32
+ key : "X-XSS-Protection" ,
33
+ value : "1; mode=block" ,
34
+ } ,
35
+ {
36
+ key : "Referrer-Policy" ,
37
+ value : "strict-origin-when-cross-origin" ,
38
+ } ,
39
+ {
40
+ key : "Strict-Transport-Security" ,
41
+ value : "max-age=2592000" ,
42
+ } ,
43
+ {
44
+ key : "X-Content-Type-Options" ,
45
+ value : "nosniff" ,
46
+ } ,
47
+ {
48
+ key : "Permissions-Policy" ,
49
+ value :
50
+ "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self" ,
51
+ } ,
52
+ ] ,
53
+ } ,
54
+ ] ,
73
55
} ;
74
56
75
57
const withMDX = createMDX ( ) ;
0 commit comments