-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
45 lines (44 loc) · 1.22 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
// const withCSS = require("@zeit/next-css");
// // const webpack = require('webpack');
//
// module.exports = withCSS({
// cssLoaderOptions: {
// url: false,
// },
// webpack: (config, { isServer }) => {
// // Fixes npm packages that depend on `fs` module
// if (!isServer) {
// config.node = {
// fs: "empty",
// };
// }
// return config;
// },
// env: {
// prod: "https://www.isitbetterthere.com",
// dev: "http://localhost:3000",
// }
// });
//
require('dotenv').config()
module.exports = {
webpack: (config, {isServer}) => {
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
env: {
// prod: "https://www.isitbetterthere.com",
// local: "http://localhost:3000",
ENVIRONMENT: process.env.ENVIRONMENT,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
MONGODB_URI: process.env.MONGODB_URI,
GOOGLE_ID: process.env.GOOGLE_ID,
GOOGLE_SECRET: process.env.GOOGLE_SECRET,
GOOGLE_USER: process.env.GOOGLE_USER,
GOOGLE_PASSWORD: process.env.GOOGLE_PASSWORD,
GITHUB_ID: process.env.GITHUB_ID,
GITHUB_SECRET: process.env.GITHUB_SECRET,
}
}