-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
48 lines (47 loc) · 1.01 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'idoly-assets-curator.vercel.app',
port: '',
pathname: '/api/img/**',
},
],
unoptimized: true,
},
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "Content-Security-Policy",
value: `
connect-src 'self' *.vibbit.me *.googleapis.com;
img-src 'self' blob: data: idoly-assets-curator.vercel.app res.cloudinary.com
`.replace(/\s{2,}/g, " ").trim(),
},
{
key: "Cross-Origin-Embedder-Policy",
value: "unsafe-none",
},
],
},
]
},
async redirects() {
return [
{
source: "/",
destination: "/search",
permanent: false,
statusCode: 307,
}
]
}
}
module.exports = nextConfig