-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
42 lines (35 loc) · 1.12 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
const withImages = require('next-images');
const dotenv = require('dotenv');
const Dotenv = require('dotenv-webpack');
const path = require('path');
module.exports = withImages({
env: {
FB_API_KEY: 'AIzaSyDlAARr1JyTYSYuXgCN7NgMFv47INWmsvY',
FB_AUTH_DOMAIN: 'schefs.firebaseapp.com',
FB_DATABASE_URL: 'https://schefs.firebaseio.com',
FB_PROJECT_ID: 'schefs',
FB_STORAGE_BUCKET: 'schefs.appspot.com',
FB_MESSAGING_SENDER_ID: '1078198186854',
FB_APP_ID: '1:1078198186854:web:4928cdbed5f459a68fcea7',
FB_MEASUREMENT_ID: 'G-SFQEPY2PRN',
BASE_URL: 'http://localhost:5000/',//'http://134.209.71.246/',
},
webpack: (config) => {
config.plugins = config.plugins || [];
config.node = {
fs: 'empty',
};
config.plugins = [
...config.plugins,
new Dotenv({
path: path.join(__dirname, '.env'),
systemvars: true,
}),
];
return config;
},
onDemandEntries: {
maxInactiveAge: 25 * 1000,
pagesBufferLength: 5,
},
})