-
Notifications
You must be signed in to change notification settings - Fork 6
/
next.config.js
39 lines (38 loc) · 1.14 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
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer({
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
serverRuntimeConfig: {
auth0: {
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
domain: process.env.AUTH0_DOMAIN,
issuer: `https://` + process.env.AUTH0_DOMAIN,
roles: {
employee: process.env.AUTH0_EMPLOYEE_ROLE,
admin: process.env.AUTH0_ADMIN_ROLE,
manager: process.env.AUTH0_MANAGER_ROLE,
volunteer: process.env.AUTH0_VOLUNTEER_ROLE,
// attendee: process.env.AUTH0_ATTENDEE_ROLE
},
},
gql: {
secret: process.env.GQL_SECRET,
accountSecret: process.env.GQL_ACCOUNT_SECRET,
audience: process.env.GQL_AUDIENCE,
},
appUrl: process.env.APP_URL,
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config?.module?.rules.push({
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: "graphql-tag/loader",
});
return config;
},
});