forked from discord-userdoccers/discord-userdoccers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
35 lines (32 loc) · 825 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import createMDX from "@next/mdx";
import supersub from "remark-supersub";
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
basePath: "",
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
swcMinify: true,
env: {
BASE_DOMAIN:
process.env.NODE_ENV === "production"
? process.env.VERCEL_PROJECT_PRODUCTION_URL ?? 'docs.discord.sex'
: process.env.VERCEL_URL ?? "localhost:3000",
},
// eslint-disable-next-line @typescript-eslint/require-await -- required for Next.js
async redirects() {
return [
{
source: "/",
destination: "/intro",
permanent: true,
},
];
},
};
const withMDX = createMDX({
options: {
remarkPlugins: [supersub],
rehypePlugins: [],
},
});
export default withMDX(config);