forked from transitive-bullshit/nextjs-notion-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (35 loc) · 973 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
module.exports = withBundleAnalyzer({
staticPageGenerationTimeout: 300,
images: {
domains: [
'www.notion.so',
'notion.so',
'images.unsplash.com',
'pbs.twimg.com',
'abs.twimg.com',
's3.us-west-2.amazonaws.com',
'handarin-courses.vercel.app'
],
formats: ['image/avif', 'image/webp'],
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
async redirects() {
return [
{
source: '/18',
destination: '/learn-18-job-직업묻기-做,工作,医生,警察,商人,教师,公司',
permanent: false,
},
{
source: '/about-us',
destination: '/free-courses-무료-강좌',
permanent: false,
},
]
},
})