forked from BloomTech-Labs/nutrivurv-fe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
24 lines (23 loc) · 1.03 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
require('dotenv').config();
const withImages = require('next-images')
module.exports = withImages({
env: {
FOOD_DB_KEY: process.env.FOOD_DB_KEY,
PORT: process.env.PORT || 3000,
GA_ID: process.env.GA_ID,
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN,
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
AUTH0_SCOPE: "openid profile email",
AUTH0_AUDIENCE: process.env.AUTH0_AUDIENCE,
REDIRECT_URI:
process.env.REDIRECT_URI || "http://localhost:3000/api/callback",
POST_LOGOUT_REDIRECT_URI:
process.env.POST_LOGOUT_REDIRECT_URI || "http://localhost:3000/",
SESSION_COOKIE_SECRET: process.env.SESSION_COOKIE_SECRET,
SESSION_COOKIE_LIFETIME: 7200, // 2 hours
GRAPHQL_ENDPOINT: process.env.GRAPHQL_ENDPOINT || "http://localhost:4000/api",
DEPLOYED_URI: process.env.DEPLOYED_URI || "http://localhost:3000/",
WEBSOCKET_ENDPOINT: process.env.WEBSOCKET_ENDPOINT
},
})