|
|
@@ -2,74 +2,56 @@ import createBundleAnalyzer from "@next/bundle-analyzer";
|
|
|
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
|
|
const withAnalyzer = createBundleAnalyzer({
|
|
|
- enabled: process.env.ANALYZE === "true",
|
|
|
+ enabled: process.env.ANALYZE === "true",
|
|
|
});
|
|
|
|
|
|
const config = {
|
|
|
- reactStrictMode: true,
|
|
|
- turbopack: {
|
|
|
- resolveExtensions: [".mdx", ".tsx", ".ts", ".jsx", ".js", ".mjs", ".json"],
|
|
|
- rules: {
|
|
|
- "*.svg": {
|
|
|
- loaders: ["@svgr/webpack"],
|
|
|
- as: "*.js",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
- pageExtensions: ["ts", "tsx", "mdx"],
|
|
|
-
|
|
|
- experimental: {
|
|
|
- useCache: true,
|
|
|
- },
|
|
|
-
|
|
|
- logging: {
|
|
|
- fetches: {
|
|
|
- fullUrl: true,
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
- webpack(config) {
|
|
|
- config.module.rules.push({
|
|
|
- test: /\.svg$/i,
|
|
|
- use: ["@svgr/webpack"],
|
|
|
- });
|
|
|
-
|
|
|
- config.resolve.extensionAlias = {
|
|
|
- ".js": [".js", ".ts", ".tsx"],
|
|
|
- };
|
|
|
-
|
|
|
- return config;
|
|
|
- },
|
|
|
-
|
|
|
- headers: async () => [
|
|
|
- {
|
|
|
- source: "/:path*",
|
|
|
- headers: [
|
|
|
- {
|
|
|
- key: "X-XSS-Protection",
|
|
|
- value: "1; mode=block",
|
|
|
- },
|
|
|
- {
|
|
|
- key: "Referrer-Policy",
|
|
|
- value: "strict-origin-when-cross-origin",
|
|
|
- },
|
|
|
- {
|
|
|
- key: "Strict-Transport-Security",
|
|
|
- value: "max-age=2592000",
|
|
|
- },
|
|
|
- {
|
|
|
- key: "X-Content-Type-Options",
|
|
|
- value: "nosniff",
|
|
|
- },
|
|
|
- {
|
|
|
- key: "Permissions-Policy",
|
|
|
- value:
|
|
|
- "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
+ reactStrictMode: true,
|
|
|
+ pageExtensions: ["ts", "tsx", "mdx"],
|
|
|
+
|
|
|
+ logging: {
|
|
|
+ fetches: {
|
|
|
+ fullUrl: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ webpack(config) {
|
|
|
+ config.module.rules.push({
|
|
|
+ test: /\.svg$/i,
|
|
|
+ use: ["@svgr/webpack"],
|
|
|
+ });
|
|
|
+
|
|
|
+ return config;
|
|
|
+ },
|
|
|
+
|
|
|
+ headers: async () => [
|
|
|
+ {
|
|
|
+ source: "/:path*",
|
|
|
+ headers: [
|
|
|
+ {
|
|
|
+ key: "X-XSS-Protection",
|
|
|
+ value: "1; mode=block",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "Referrer-Policy",
|
|
|
+ value: "strict-origin-when-cross-origin",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "Strict-Transport-Security",
|
|
|
+ value: "max-age=2592000",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "X-Content-Type-Options",
|
|
|
+ value: "nosniff",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "Permissions-Policy",
|
|
|
+ value:
|
|
|
+ "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
|
|
|
const withMDX = createMDX();
|