Files
pse.dev/next.config.mjs
2024-10-29 21:57:30 +01:00

27 lines
544 B
JavaScript

import nextMdx from "@next/mdx"
const withMDX = nextMdx({
webpack: (config, { isServer }) => {
if (!isServer) {
config.externals.push("discord.js", "@discordjs/rest");
}
return config;
},
extension: /\.mdx?$/,
options: {
remarkPlugins: [],
rehypePlugins: [],
},
})
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx", "md"],
reactStrictMode: true,
experimental: {
appDir: true,
mdxRs: true,
},
}
export default withMDX(nextConfig)