-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
28 lines (27 loc) · 792 Bytes
/
next.config.js
File metadata and controls
28 lines (27 loc) · 792 Bytes
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
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
module.exports = (phase) => {
if (phase == PHASE_DEVELOPMENT_SERVER) {
console.log("PHASE_DEVELOPMENT_SERVER");
return {
env: {
mongodb_username: "649312038",
mongodb_password: "",
mongodb_clustername: "cluster0",
mongodb_database: "my-site",
NEXTAUTH_SECRET:"",
NEXTAUTH_URL: "next-js-blog-n1zucfp6o-cyx649312038s-projects.vercel.app"
},
};
}
console.log("product");
return {
env: {
mongodb_username: "649312038",
mongodb_password: "",
mongodb_clustername: "Cluster0",
mongodb_database: "my-site",
NEXTAUTH_SECRET:"",
NEXTAUTH_URL: "next-js-blog-n1zucfp6o-cyx649312038s-projects.vercel.app"
},
};
};