-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
37 lines (33 loc) · 889 Bytes
/
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
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
env: {
apiKey: process.env.apiKey,
authDomain: process.env.authDomain,
projectId: process.env.projectId,
storageBucket: process.env.storageBucket,
messagingSenderId: process.env.messagingSenderId,
appId: process.env.appId,
measurementId: process.env.measurementId,
apiUrl: process.env.apiUrl,
jdoodleClientId: process.env.jdoodleClientId,
jdoodleClientSecret: process.env.jdoodleClientSecret,
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
config.experiments = { topLevelAwait: true };
config.experiments.layers = true;
return config;
}
}