-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
46 lines (42 loc) · 913 Bytes
/
next.config.ts
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
43
44
45
import type { NextConfig } from 'next';
import createMDX from '@next/mdx';
const nextConfig: NextConfig = {
pageExtensions: ['mdx', 'ts', 'tsx'],
experimental: {
mdxRs: true,
},
async rewrites() {
return [
{
source: "/rss.xml",
destination: "/api/feed/rss.xml",
},
{
source: "/atom.xml",
destination: "/api/feed/atom.xml",
},
{
source: "/feed.json",
destination: "/api/feed/feed.json",
},
{
source: "/rss",
destination: "/api/feed/rss.xml",
},
{
source: "/feed",
destination: "/api/feed/rss.xml",
},
{
source: "/atom",
destination: "/api/feed/atom.xml",
},
{
source: "/json",
destination: "/api/feed/feed.json",
},
];
},
};
const withMDX = createMDX({});
export default withMDX(nextConfig);