-
Notifications
You must be signed in to change notification settings - Fork 16
/
next.config.js
executable file
·108 lines (105 loc) · 3.84 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module.exports = () => {
const env = {
NEXT_PUBLIC_OPENQ_PROXY_ADDRESS: process.env.OPENQ_PROXY_ADDRESS,
NEXT_PUBLIC_DEPOSIT_MANAGER_PROXY_ADDRESS: process.env.DEPOSIT_MANAGER_PROXY_ADDRESS,
NEXT_PUBLIC_DEPLOY_ENV: process.env.DEPLOY_ENV,
NEXT_PUBLIC_SUPERFLUID_RESOLVER_ADDRESS: process.env.SUPERFLUID_RESOLVER_ADDRESS,
NEXT_PUBLIC_FDAIX_ADDRESS: process.env.FDAIX_ADDRESS,
NEXT_PUBLIC_INFURA_KEY: process.env.INFURA_KEY,
NEXT_PUBLIC_BASE_URL: process.env.BASE_URL,
NEXT_PUBLIC_AUTH_URL: process.env.AUTH_URL,
NEXT_PUBLIC_INVOICE_URL: process.env.INVOICE_URL,
NEXT_PUBLIC_GITHUB_PROXY_URL: process.env.GITHUB_PROXY_URL,
NEXT_PUBLIC_OPENQ_API_URL: process.env.OPENQ_API_URL,
NEXT_PUBLIC_ORACLE_URL: process.env.ORACLE_URL,
NEXT_PUBLIC_GITHUB_BOT_WEBHOOK: process.env.GITHUB_BOT_WEBHOOK,
NEXT_PUBLIC_COIN_API_URL: process.env.COIN_API_URL,
NEXT_PUBLIC_OPENQ_ID: process.env.OPENQ_ID,
NEXT_PUBLIC_BLOCK_EXPLORER_BASE_URL: process.env.BLOCK_EXPLORER_BASE_URL,
NEXT_PUBLIC_OPENQ_SUBGRAPH_HTTP_URL: process.env.OPENQ_SUBGRAPH_HTTP_URL,
NEXT_PUBLIC_SUPERFLUID_SUBGRAPH_URL: process.env.SUPERFLUID_SUBGRAPH_URL,
NEXT_PUBLIC_GA_TRACKING_ID: process.env.GA_TRACKING_ID,
NEXT_PUBLIC_INFURA_PROJECT_ID: process.env.INFURA_PROJECT_ID,
NEXT_PUBLIC_CLAIM_MANAGER_PROXY_ADDRESS: process.env.CLAIM_MANAGER_PROXY_ADDRESS,
NEXT_PUBLIC_MOCK_NFT_TOKEN_ADDRESS: process.env.MOCK_NFT_TOKEN_ADDRESS,
NEXT_PUBLIC_KYC_ADDRESS: process.env.KYC_ADDRESS,
NEXT_PUBLIC_BUILD_NUMBER: process.env.BUILD_NUMBER,
NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY: process.env.MAGIC_PUBLISHABLE_KEY,
NEXT_PUBLIC_CONVERTKIT_API_KEY: process.env.CONVERTKIT_API_KEY,
NEXT_PUBLIC_NOTIFICATIONS_PUBLIC_KEY: process.env.NOTIFICATIONS_PUBLIC_KEY,
NEXT_PUBLIC_NOTIFICATIONS_CHANNEL_ID: process.env.NOTIFICATIONS_CHANNEL_ID,
NEXT_PUBLIC_PAT: process.env.PAT,
};
const headers = [
{ key: 'Access-Control-Allow-Origin', value: '*' },
{ key: 'Access-Control-Allow-Methods', value: 'GET' },
{ key: 'Access-Control-Allow-Headers', value: 'X-Requested-With, content-type, Authorization' },
];
const config = {
reactStrictMode: true,
env,
async headers() {
return [
{
source: '/manifest.json',
headers,
},
];
},
images: {
domains: [
'images.prismic.io',
'githubusercontent.com',
'assets.coingecko.com',
'avatars.githubusercontent.com',
'raw.githubusercontent.com',
'cryptologos.cc',
'wallet-asset.matic.network',
'polygonscan.com',
'etherscan.io',
'gateway.pinata.cloud',
'svgshare.com',
'coinpoker.com',
'i.imgur.com',
'github.com',
'btu-protocol.com',
'img.ex-sports.io',
'pruf.io',
'arch-finance-basket-logos.s3.amazonaws.com',
'images.ctfassets.net',
'www.uct-token.org',
'www.dropbox.com',
's2.coinmarketcap.com',
'www.fleato.com',
'cdn.efinity.io',
'cryptopia.com',
'cryptopia.com',
'app.insurace.io',
'd26jz7p3kula4l.cloudfront.net',
'i.ibb.co',
'crazydefenseheroes.com',
'insuretoken.net',
'arweave.net',
'drive.google.com',
'www.germoney.cash',
'www.lepasa.com',
'app.civfund.org',
'minatodao.com',
'bafkreiawezzhlphckhopkolrkxsz4mtayjz4cjxz4bgsvvkjsclqacf2be.ipfs.nftstorage.link',
'www.theranosco.in',
'uploads-ssl.webflow.com',
'changenow.io',
'navcoin.org',
'miguelpiedrafita.com',
'deversifi.com',
'user-images.githubusercontent.com',
'1planet.app',
'gateway.ipfs.io',
'cdn.coinranking.com',
'www.ludenaprotocol.io',
's.ozys.io',
],
},
};
return config;
};