You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
getcryst.al/next.config.mjs

41 lines
885 B
JavaScript

// next.config.mjs
import remarkGfm from "remark-gfm";
import createMDX from "@next/mdx";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
config.experiments.topLevelAwait = true;
return config;
},
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
experimental: { images: { allowFutureImage: true } },
async redirects() {
return [
{
source: "/discord",
destination: "https://discord.com/invite/76RR4VC45V",
permanent: true,
},
];
},
};
const withMDX = createMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
providerImportSource: "@mdx-js/react",
},
});
export default withMDX(nextConfig);