-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
90 lines (86 loc) · 2.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
module.exports = {
/*
* future: {
* webpack5: true,
* },
*/
env: {
DISCORD_CLIENT_ID: process.env.DISCORD_CLIENT_ID,
DISCORD_CLIENT_SECRET: process.env.DISCORD_CLIENT_SECRET,
DYNAMODB_ACCESS_KEY_ID: process.env.DYNAMODB_ACCESS_KEY_ID,
DYNAMODB_ACCESS_KEY_SECRET: process.env.DYNAMODB_ACCESS_KEY_SECRET,
DYNAMODB_NEXTAUTH_TABLE: process.env.DYNAMODB_NEXTAUTH_TABLE,
DYNAMODB_REGION: process.env.DYNAMODB_REGION,
DYNAMODB_STRIPE_EVENTS_TABLE: process.env.DYNAMODB_STRIPE_EVENTS_TABLE,
DYNAMODB_STRIPE_TABLE: process.env.DYNAMODB_STRIPE_TABLE,
DYNAMODB_STRIPE_TRIALS_TABLE: process.env.DYNAMODB_STRIPE_TRIALS_TABLE,
EMAIL_FROM: process.env.EMAIL_FROM,
EMAIL_SERVER_HOST: process.env.EMAIL_SERVER_HOST,
EMAIL_SERVER_PASSWORD: process.env.EMAIL_SERVER_PASSWORD,
EMAIL_SERVER_PORT: process.env.EMAIL_SERVER_PORT,
EMAIL_SERVER_USER: process.env.EMAIL_SERVER_USER,
JWT_SIGNING_PRIVATE_KEY: process.env.JWT_SIGNING_PRIVATE_KEY,
LITEBANS_API: process.env.LITEBANS_API,
LITEBANS_API_KEY: process.env.LITEBANS_API_KEY,
NEXT_PUBLIC_STRIPE_KEY: process.env.NEXT_PUBLIC_STRIPE_KEY,
NEXT_PUBLIC_URL: process.env.NEXT_PUBLIC_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
SQS_QUEUE_URL: process.env.SQS_QUEUE_URL,
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true
},
images: {
domains: [
'www.gravatar.com',
'cdn.discordapp.com',
'crafatar.com',
'mc-heads.net',
'files.stripe.com', // stripe product icons
'static.eartharoid.me' // temp
]
}
// webpack: config => {
// config.module.rules.push({
// loader: 'node-loader',
// test: /\.node$/
// });
// // config.externals.sharp = 'commonjs sharp';
// return config;
// }
// webpack: config => { // { buildId, dev, isServer, defaultLoaders, webpack }
// /*
// * Note: we provide webpack above so you should not `require` it
// * Perform customizations to webpack config
// */
// const plugin = new FilterWarningsPlugin({
// exclude: [
// /mongodb/,
// /mssql/,
// /mysql/,
// /mysql2/,
// /oracledb/,
// /pg/,
// /pg-native/,
// /pg-query-stream/,
// /react-native-sqlite-storage/,
// /redis/,
// /sqlite3/,
// /sql.js/,
// /typeorm-aurora-data-api-driver/
// ]
// });
// config.plugins.push(plugin);
// config.resolve.alias = {
// ...config.resolve.alias,
// };
// // Important: return the modified config
// return config;
// }
};