-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
55 lines (53 loc) · 1.44 KB
/
next.config.js
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
46
47
48
49
50
51
52
53
54
55
const withPlugins = require('next-compose-plugins')
const withMDX = require('@next/mdx')({
extension: /\.(md|mdx)$/
})
const rewritesConfig = [
{
source: '/cv/pdf',
destination: 'https://bluprince13.gitlab.io/cv/ajayakumar_vipin_cv.pdf'
},
{
source: '/cv/source',
destination:
'https://bluprince13.gitlab.io/cv/ajayakumar_vipin_cv.tar.gz'
},
{
source: '/apps/renting-vs-buying',
destination: `https://renting-vs-buying.vercel.app/`
},
{
source: '/apps/renting-vs-buying/:path*',
destination: `https://renting-vs-buying.vercel.app/:path*`
},
{
source: '/apps/coding-interview-prep',
destination: `https://coding-interview-prep.netlify.app/`
},
{
source: '/apps/coding-interview-prep/:path*',
destination: `https://coding-interview-prep.netlify.app/:path*`
},
{
source: '/slides/:path*',
destination: `https://bluprince13-slides.vercel.app/slides/:path*`
},
{
source: '/reveal.js/:path*',
destination: `https://bluprince13-slides.vercel.app/slides/reveal.js/:path*`
}
]
module.exports = withPlugins(
[
[
// TODO: Reduce width of MDX based pages
withMDX,
{
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx']
}
]
],
{
rewrites: async () => rewritesConfig
}
)