-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnext.config.js
More file actions
31 lines (30 loc) · 838 Bytes
/
next.config.js
File metadata and controls
31 lines (30 loc) · 838 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
29
30
31
const { i18n } = require('./next-i18next.config');
module.exports = {
i18n,
swcMinify: true,
publicRuntimeConfig: {
// eslint-disable-next-line node/no-process-env
stripeKey: process.env.STRIPE_PUBLISHABLE_KEY,
// eslint-disable-next-line node/no-process-env
razorpayKey: process.env.RAZORPAY_KEY_ID,
},
serverRuntimeConfig: {
clear_gql: {
// eslint-disable-next-line node/no-process-env
secret: process.env.CLEAR_GQL_SECRET,
// eslint-disable-next-line node/no-process-env
audience: process.env.CLEAR_GQL_AUDIENCE,
},
// eslint-disable-next-line node/no-process-env
audience: process.env.JWT_AUDIENCE,
},
async redirects() {
return [
{
source: '/',
destination: 'https://www.codeday.org/',
permanent: false,
},
];
},
};