-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
41 lines (32 loc) · 848 Bytes
/
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
const remarkSlugs = require('remark-slug')
const rehypeHtml = require('rehype-stringify')
const withMDX = require('@next/mdx')({
extension: /\.mdx$/,
options: {
remarkPlugins: [remarkSlugs],
rehypePlugins: [rehypeHtml],
},
})
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'mdx'],
assetPrefix: '/',
webpack(config)
{
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
})
config.resolve.fallback = {
fs: false,
}
return config
},
publicRuntimeConfig: {
urlNoCorsProxy: "https://api.allorigins.win/get?url=",
urlMediumRSSFeed: "https://medium.com/feed/@mrspencehimself",
}
// i18n: {
// locales: ["en-GB"],
// defaultLocale: "en-GB",
// },
})