-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
64 lines (61 loc) · 2.07 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
56
57
58
59
60
61
62
63
64
/* eslint-disable @typescript-eslint/no-var-requires */
const slug = require('remark-slug')
const headings = require('remark-autolink-headings')
const remarkMath = require('remark-math')
const rehypeKatex = require('rehype-katex')
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [slug, headings, remarkMath],
rehypePlugins: [() => rehypeKatex({ output: 'html' })],
},
})
module.exports = withMDX({
/* future: {
webpack5: true, // Breaks walletconnect
}, */
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US',
localeDetection: false,
},
images: {
domains: [
'raw.githubusercontent.com',
'ipfs.io',
'assets.coingecko.com',
'etherscan.io',
],
},
async headers() {
return [
{
source: '/:path*{/}?',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY',
},
/* {
key: 'Content-Security-Policy',
value:
"default-src 'self'; img-src 'self' data: https://assets.coingecko.com https://ipfs.io https://raw.githubusercontent.com https://render.githubusercontent.com https://media.giphy.com; media-src 'self' https://media.giphy.com; script-src 'self' 'unsafe-inline' https://plausible.io; font-src 'self'; style-src 'self' 'unsafe-inline'; prefetch-src https://vanilladefi.com *equilibriumco.vercel.app; connect-src 'self' wss://bridge.walletconnect.org https://api.thegraph.com wss://api.thegraph.com https://eth-mainnet.alchemyapi.io wss://eth-mainnet.alchemyapi.io https://plausible.io; frame-ancestors 'none'; base-uri 'none'; form-action 'none'; manifest-src 'self';",
}, */
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
],
},
]
},
})