mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-11 07:08:07 -05:00
34 lines
804 B
JavaScript
34 lines
804 B
JavaScript
import nextMdx from "@next/mdx";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const withMDX = nextMdx({
|
|
webpack: (config, { isServer }) => {
|
|
if (isServer) {
|
|
config.resolve.alias["zlib-sync"] = path.resolve(__dirname, "lib/dummy-zlib-sync.js");
|
|
config.externals.push("erlpack");
|
|
} else {
|
|
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: {
|
|
|
|
mdxRs: true,
|
|
},
|
|
}
|
|
|
|
export default withMDX(nextConfig)
|