-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
36 lines (35 loc) · 1.25 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
env: {
MATIC_PRIVATE_KEY: process.env.NEXT_PUBLIC_MATIC_PRIVATE_KEY,
MATIC_LINK: process.env.NEXT_PUBLIC_MATIC_LINK,
PUBLIC_KEY: process.env.NEXT_PUBLIC_PUBLIC_KEY,
STORAGE_KEY: process.env.NEXT_PUBLIC_STORAGE_KEY,
NFT_KEY: process.env.NEXT_PUBLIC_NFT_KEY,
FIREBASE_APIKEY: process.env.NEXT_PUBLIC_FIREBASE_APIKEY,
FIREBASE_AUTHDOMAIN: process.env.NEXT_PUBLIC_FIREBASE_AUTHDOMAIN,
FIREBASE_DATABASEURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASEURL,
FIREBASE_PROJECTID: process.env.NEXT_PUBLIC_FIREBASE_PROJECTID,
FIREBASE_STORAGEBUCKET: process.env.NEXT_PUBLIC_FIREBASE_STORAGEBUCKET,
FIREBASE_MESSAGINGSENDERID: process.env.NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID,
FIREBASE_APPID: process.env.NEXT_PUBLIC_FIREBASE_APPID,
FIREBASE_MEASUREMENTID: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENTID,
HUDDLE: process.env.NEXT_PUBLIC_HUDDLE,
},
};
module.exports = {
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015']
},
nextConfig,
};