-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
63 lines (62 loc) · 2.03 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
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('next').NextConfig} */
const withTM = require('next-transpile-modules')([
'@blocto/sdk',
'@project-serum/sol-wallet-adapter',
'@solana/wallet-adapter-base',
'@solana/wallet-adapter-react',
'@solana/wallet-adapter-bitkeep',
'@solana/wallet-adapter-bitpie',
'@solana/wallet-adapter-blocto',
'@solana/wallet-adapter-clover',
'@solana/wallet-adapter-coin98',
'@solana/wallet-adapter-coinhub',
'@solana/wallet-adapter-ledger',
'@solana/wallet-adapter-mathwallet',
'@solana/wallet-adapter-phantom',
'@solana/wallet-adapter-safepal',
'@solana/wallet-adapter-slope',
'@solana/wallet-adapter-solflare',
'@solana/wallet-adapter-sollet',
'@solana/wallet-adapter-solong',
'@solana/wallet-adapter-tokenpocket',
'@solana/wallet-adapter-torus',
'@solana/wallet-adapter-wallets'
])
const { env } = process
const environment = {
NEXT_CANDY_MACHINE_CONFIG: process.env.NEXT_CANDY_MACHINE_CONFIG,
NEXT_CANDY_MACHINE_ID: process.env.NEXT_CANDY_MACHINE_ID,
NEXT_TREASURY_ADDRESS: process.env.NEXT_TREASURY_ADDRESS,
NEXT_CANDY_START_DATE: process.env.NEXT_CANDY_START_DATE,
NEXT_SOLANA_NETWORK: process.env.NEXT_SOLANA_NETWORK,
NEXT_SOLANA_RPC_HOST: process.env.NEXT_SOLANA_RPC_HOST,
NEXT_FIREBASE_API_KEY: env.NEXT_FIREBASE_API_KEY,
NEXT_FIREBASE_AUTH_DOMAIN: env.NEXT_FIREBASE_AUTH_DOMAIN,
NEXT_FIREBASE_PROJECT_ID: env.NEXT_FIREBASE_PROJECT_ID,
NEXT_FIREBASE_STORAGE_BUCKET: env.NEXT_FIREBASE_STORAGE_BUCKET,
NEXT_FIREBASE_MESSAGING_SENDER_ID: env.NEXT_FIREBASE_MESSAGING_SENDER_ID,
NEXT_FIREBASE_APP_ID: env.NEXT_FIREBASE_APP_ID,
NEXT_FIREBASE_MEASUREMENT_ID: process.env.NEXT_FIREBASE_MEASUREMENT_ID
}
module.exports = withTM({
reactStrictMode: true,
webpack5: true,
images: {
loader: 'akamai',
path: ''
},
webpack: (config) => {
config.resolve.fallback = {
fs: false,
os: false,
path: false,
stream: false
}
return config
},
compiler: {
styledComponents: true
},
env: environment
})