-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnext.config.js
65 lines (61 loc) · 1.37 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
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});
require("dotenv").config();
const nextConfig = {
reactStrictMode: true,
env: {
GITHUB_REPO: process.env.GITHUB_REPO,
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "source.unsplash.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "images.pexels.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "plus.unsplash.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "i.pravatar.cc",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "www.auraui.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "www.pexels.com",
port: "",
pathname: "/**",
},
],
},
};
module.exports = withNextra(nextConfig);
// If you have other Next.js configurations, you can pass them as the parameter:
// module.exports = withNextra({ /* other next.js config */ })