-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
122 lines (112 loc) · 4.09 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
module.exports = (phase) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
env: {
mongodb_username: "gcch1122",
mongodb_password: "1ABSGfxlpesfCbyV",
mongodb_clustername: "LostNest",
mongodb_database: "LostNestFYP",
smtp_host: "mail.smtp2go.com",
smtp_user: "students.uettaxila.edu.pk",
smtp_pass: "xCEEWP6kNjOzYDp7",
NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
NEXTAUTH_URL: "http://localhost:3000",
password_changehost: "live.smtp.mailtrap.io",
password_changeusername: "api",
password_changepass: "7f3c430972c0df09d5c35c46e1fbb767",
LOCALAPP_URL: "http://localhost:3000",
LOSTNESTAPP_URL: "https://www.lostnest.xyz/",
},
};
}
return {
env: {
mongodb_username: "gcch1122",
mongodb_password: "1ABSGfxlpesfCbyV",
mongodb_clustername: "LostNest",
mongodb_database: "DeployedLostNest",
smtp_host: "mail.smtp2go.com",
smtp_user: "students.uettaxila.edu.pk",
smtp_pass: "xCEEWP6kNjOzYDp7",
NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
password_changehost: "live.smtp.mailtrap.io",
password_changeusername: "api",
password_changepass: "7f3c430972c0df09d5c35c46e1fbb767",
LOCALAPP_URL: "http://localhost:3000",
LOSTNESTAPP_URL: "https://www.lostnest.xyz/",
},
};
};
//LostNest Main gcch
// const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
// module.exports = (phase) => {
// if (phase === PHASE_DEVELOPMENT_SERVER) {
// return {
// env: {
// mongodb_username: "gcch1122",
// mongodb_password: "1ABSGfxlpesfCbyV",
// mongodb_clustername: "LostNest",
// mongodb_database: "LostNestFYP",
// smtp_host: "sandbox.smtp.mailtrap.io",
// smtp_user: "6bb4922c65d9b2",
// smtp_pass: "1e9e125d684fac",
// NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
// NEXTAUTH_URL: "http://localhost:3000",
// password_changehost: "live.smtp.mailtrap.io",
// password_changeusername: "api",
// password_changepass: "7f3c430972c0df09d5c35c46e1fbb767",
// LOCALAPP_URL: "http://localhost:3000",
// LOSTNESTAPP_URL: "https://www.lostnest.xyz/",
// },
// };
// }
// return {
// env: {
// mongodb_username: "gcch1122",
// mongodb_password: "1ABSGfxlpesfCbyV",
// mongodb_clustername: "LostNest",
// mongodb_database: "DeployedLostNest",
// smtp_host: "sandbox.smtp.mailtrap.io",
// smtp_user: "6bb4922c65d9b2",
// smtp_pass: "1e9e125d684fac",
// NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
// password_changehost: "live.smtp.mailtrap.io",
// password_changeusername: "api",
// password_changepass: "7f3c430972c0df09d5c35c46e1fbb767",
// LOCALAPP_URL: "http://localhost:3000",
// LOSTNESTAPP_URL: "https://www.lostnest.xyz/",
// },
// };
// };
//Main Acc
// const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
// module.exports = (phase) => {
// if (phase === PHASE_DEVELOPMENT_SERVER) {
// return {
// env: {
// mongodb_username: "ghufran",
// mongodb_password: "Allahis1",
// mongodb_clustername: "cluster0",
// mongodb_database: "authSec14",
// smtp_host: "sandbox.smtp.mailtrap.io",
// smtp_user: "6bb4922c65d9b2",
// smtp_pass: "1e9e125d684fac",
// NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
// NEXTAUTH_URL: "http://localhost:3000",
// },
// };
// }
// return {
// env: {
// mongodb_username: "ghufran",
// mongodb_password: "Allahis1",
// mongodb_clustername: "cluster0",
// mongodb_database: "Production",
// smtp_host: "sandbox.smtp.mailtrap.io",
// smtp_user: "6bb4922c65d9b2",
// smtp_pass: "1e9e125d684fac",
// NEXTAUTH_SECRET: "LlKq6ZtYbr+hTC073mAmAh9/h2HwMfsFo4hrfCx5mLg=",
// },
// };
// };