-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
executable file
·39 lines (36 loc) · 964 Bytes
/
Copy pathnext.config.js
File metadata and controls
executable file
·39 lines (36 loc) · 964 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "export",
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
},
{
protocol: 'https',
hostname: 'raw.githubusercontent.com',
},
],
unoptimized: true,
},
env: {
OWNER: process.env.OWNER,
REPO: process.env.REPO,
GOOGLE_ANALYTICS_ID: process.env.GOOGLE_ANALYTICS_ID,
LABELS: 'published',
// config
comment: 'true', // true or false
theme: 'both', // 'light' or 'dark' or 'both'
rss: 'true', // true or false
back2top: 'true', // true or false
mail: 'z0ffy@icloud.com', // your email
twitter: '', // your twitter
bio: '',
},
basePath: process.env.DEPLOY_TARGET === 'gh-pages' && process.env.REPO !== `${process.env.OWNER}.github.io`
? `/${process.env.REPO}`
: '',
}
module.exports = nextConfig