-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
38 lines (36 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
/** @type {import('next').NextConfig} */
const path = require("path");
const securityHeaders = require("./headers");
const nextConfig = {
trailingSlash: true,
images: {
unoptimized: true,
domains: [
"static.plgworks.com",
"nftornot-assests.s3.amazonaws.com",
"non-staging-assests.s3.amazonaws.com",
"static.staging.nftornot.com",
"non-staging-statc-files.s3.amazonaws.com",
"non-staging-statc-files.s3.us-east-2.amazonaws.com",
"non-prod-static-files.s3.amazonaws.com",
"static.nftornot.com",
],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048],
path: process.env.W_CDN_IMAGE_RESIZER_URL,
formats: ["image/avif", "image/webp"],
},
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
exportPathMap: [],
},
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: "/:path*",
headers: securityHeaders,
},
];
},
};
module.exports = nextConfig;