forked from Effect-TS/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
42 lines (39 loc) · 1.02 KB
/
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
36
37
38
39
40
41
42
// import { nodeTypes } from "@mdx-js/mdx"
import nextra from "nextra"
import remarkGFM from "remark-gfm"
import codeImport from "remark-code-import"
// import rehypeRaw from "rehype-raw"
// import remarkShikiTwoslash from "remark-shiki-twoslash"
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
defaultShowCopyCode: true,
mdxOptions: {
// rehypePlugins: [[rehypeRaw, { passThrough: nodeTypes }]],
remarkPlugins: [
remarkGFM,
codeImport,
// [
// remarkShikiTwoslash.default,
// {
// defaultCompilerOptions: {
// types: ["node"],
// },
// themes: ["dark-plus", "light-plus"],
// },
// ],
],
},
})
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "standalone",
rewrites: () => [
{
source: "/events/:path*",
destination: "https://webflow.effect.website/events/:path*",
},
],
}
export default withNextra(nextConfig)