-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
44 lines (41 loc) · 1.17 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
/** @type {import('next').NextConfig} */
const { createSecureHeaders } = require("next-secure-headers");
const path = require("path");
const fs = require("fs");
const nextConfig = {
reactStrictMode: true,
experimental: {
appDir: true
},
sassOptions: {
includePaths: [path.join(__dirname, "styles")]
},
images: {
formats: ["image/avif", "image/webp"],
domains: ["s.gravatar.com"]
},
env: {
siteTitle: "Your Company",
siteDescription: "Your company description.",
siteKeywords: "your company keywords",
siteUrl: "You site url",
siteImagePreviewUrl: "/images/preview.jpeg",
twitterHandle: "@your_handle"
},
headers() {
return [
{
source: "/(.*)",
headers: [
...createSecureHeaders(),
// HSTS Preload: https://hstspreload.org/
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload"
}
]
}
];
}
};
module.exports = nextConfig;