-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
50 lines (48 loc) · 1.79 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
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
module.exports = (phase) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
env: {
mongodb_username: 'zahra1418 ',
mongodb_password: '1376_1418',
mongodb_clustername: 'cluster0',
mongodb_database: '',
MONGO_URI: "mongodb://test:test@localhost:27017/",
// MONGO_URI:'mongodb+srv://zahra1418:1376_1418@cluster0.7wu9n.mongodb.net/test',
// MONGO_URI:'mongodb://localhost/gallery',
// MONGO_URI:'mongodb+srv://zahra1418:1376_1418@cluster0.7wu9n.mongodb.net/test',
},
reactStrictMode: true,
images: {
domains: ['i.pinimg.com', 'www.pinterest.com', "cdn.dribbble.com", "pannel.soorealstore.site"],
},
}
}
return {
env: {
mongodb_username: 'zahra1418 ',
mongodb_password: '1376_1418',
mongodb_clustername: 'cluster0',
mongodb_database: '',
MONGO_URI: "mongodb://test:test@localhost:27017/",
// MONGO_URI:'mongodb://localhost/gallery',
// MONGO_URI:'mongodb+srv://zahra1418:1376_1418@cluster0.7wu9n.mongodb.net/test'
},
reactStrictMode: true,
images: {
domains: ['i.pinimg.com', 'www.pinterest.com', "cdn.dribbble.com", "pannel.soorealstore.site"],
},
}
// env: {
// mongodb_username:'',
// mongodb_password:'',
// mongodb_clustername:'',
// mongodb_database:'',
// MONGO_URI:'mongodb://localhost/gallery'
// },
// reactStrictMode: true,
// images: {
// domains: ['i.pinimg.com','www.pinterest.com'],
// },
// optimizeFonts: false,
}