Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 1 | module.exports = { |
| 2 | reactStrictMode: true, |
pineafan | 7872745 | 2021-11-04 21:25:07 +0000 | [diff] [blame] | 3 | 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 | }, |
pineafan | 74f1674 | 2022-11-07 21:57:55 +0000 | [diff] [blame] | 17 | 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 | }; |