Files
pse.dev/next.config.mjs
Kalidou Diagne 5356ea521d feat: General fixes 4 (#388)
* feat: general fixes wip

* feat: complete general fixes

- align side wiki
- Enforce kebab-case on URLs (fix #309)
- Search result don’t render markdown (fix #362)
- Move “related projects” before “more articles”in blog page
- Display research projects on projects page (fix #387)
- Add support for youtube videos for projects (fix #384)
- Add support for team member for projects (fix #385)

* feat: "new articles" use new blog card component

* feat: make articles card link more visible
2025-05-12 11:41:32 +01:00

37 lines
870 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,
images: {
domains: ["i.ytimg.com", "img.youtube.com"],
},
experimental: {
mdxRs: true,
},
}
export default withMDX(nextConfig)