-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
38 lines (38 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
redirects: () => [
{
source: '/volunteer',
destination: 'https://www.codeday.org/volunteer/virtual',
permanent: false,
},
],
serverRuntimeConfig: {
auth0: {
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
ACCOUNT_ADMIN_TOKEN: process.env.ACCOUNT_ADMIN_TOKEN,
},
contentful: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
token: process.env.CONTENTFUL_TOKEN,
},
gcal: {
calendarID: process.env.CALENDAR_ID,
apiKey: process.env.API_KEY,
},
mysql: {
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
},
},
publicRuntimeConfig: {
auth0: {
domain: process.env.AUTH0_DOMAIN,
},
appUrl: process.env.APP_URL,
scheduleEnabled: !!(process.env.CALENDAR_ID),
icsUrl: `https://calendar.google.com/calendar/ical/${process.env.CALENDAR_ID}/public/basic.ics`,
},
};