blob: 33c5c8e7091a56d3d2fa2700043a9b1e76d1e8d3 [file] [log] [blame]
Samuel Shuert016ea022021-09-01 16:17:24 -05001module.exports = {
2 reactStrictMode: true,
pineafan78727452021-11-04 21:25:07 +00003 webpack(config) {
4 config.module.rules.push({
5 test: /\.svg$/,
6 use: [
7 {
8 loader: "@svgr/webpack",
9 options: {
10 svgo: false, // Optimization caused bugs with some of my SVGs
11 },
12 },
13 ],
14 });
15 return config;
16 },
pineafan74f16742022-11-07 21:57:55 +000017 async headers() {
18 return [
19 {
20 source: "/:path*",
21 headers: [
22 {
23 key: "X-XSS-Protection",
24 value: "1; mode=block",
25 },
26 {
27 key: "X-Frame-Options",
28 value: "SAMEORIGIN",
29 },
30 {
31 key: "Strict-Transport-Security",
32 value: "max-age=63072000; includeSubDomains; preload",
33 }
34 ]
35 },
36 ];
37 }
38};