-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
40 lines (36 loc) · 1000 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
38
39
40
/** @type {import('next').NextConfig} */
require("dotenv").config();
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
env: {
CURRENT_URL: process.env.CURRENT_URL,
DATABASE_URL: process.env.DATABASE_URL,
DB_URL: process.env.DB_URL,
COOKIE_NAME: process.env.COOKIE_NAME,
REDIS_PORT: process.env.REDIS_PORT,
REDIS_HOST: process.env.REDIS_HOST,
REDIS_PASSWORD: process.env.REDIS_PASSWORD,
GITHUB_SECRET: process.env.GITHUB_SECRET,
GITHUB_ID: process.env.GITHUB_ID,
EMAIL_PASSWORD: process.env.EMAIL_PASSWORD,
PUBLIC_EMAIL: process.env.PUBLIC_EMAIL,
},
images: {
domains: [
"cdn.cdnlogo.com",
"res.cloudinary.com",
"cdn.pixabay.com",
"react.semantic-ui.com",
"dezpolycarpe.files.wordpress.com",
],
},
webpack: (config) => {
if (!config.experiments) {
config.experiments = {};
}
config.experiments.topLevelAwait = true;
return config;
},
};
module.exports = nextConfig;