Skyler Grey | 6c3d463 | 2023-03-06 09:51:21 +0000 | [diff] [blame] | 1 | require('dotenv').config(); |
| 2 | |
Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 3 | module.exports = { |
| 4 | reactStrictMode: true, |
pineafan | 7872745 | 2021-11-04 21:25:07 +0000 | [diff] [blame] | 5 | webpack(config) { |
| 6 | config.module.rules.push({ |
| 7 | test: /\.svg$/, |
| 8 | use: [ |
| 9 | { |
| 10 | loader: "@svgr/webpack", |
| 11 | options: { |
| 12 | svgo: false, // Optimization caused bugs with some of my SVGs |
| 13 | }, |
| 14 | }, |
| 15 | ], |
| 16 | }); |
| 17 | return config; |
| 18 | }, |
pineafan | 74f1674 | 2022-11-07 21:57:55 +0000 | [diff] [blame] | 19 | async headers() { |
| 20 | return [ |
| 21 | { |
| 22 | source: "/:path*", |
| 23 | headers: [ |
| 24 | { |
| 25 | key: "X-XSS-Protection", |
| 26 | value: "1; mode=block", |
| 27 | }, |
| 28 | { |
| 29 | key: "X-Frame-Options", |
| 30 | value: "SAMEORIGIN", |
| 31 | }, |
| 32 | { |
| 33 | key: "Strict-Transport-Security", |
| 34 | value: "max-age=63072000; includeSubDomains; preload", |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | ]; |
TheCodedProf | c86e44b | 2023-02-28 17:30:57 -0500 | [diff] [blame] | 39 | }, |
| 40 | images: { |
| 41 | domains: ["picsum.photos", "cdn.discordapp.com"] |
Skyler Grey | 6c3d463 | 2023-03-06 09:51:21 +0000 | [diff] [blame] | 42 | }, |
| 43 | env: { |
| 44 | NUCLEUS_CALLBACK: process.env.NUCLEUS_CALLBACK, |
pineafan | 74f1674 | 2022-11-07 21:57:55 +0000 | [diff] [blame] | 45 | } |
Skyler Grey | 6c3d463 | 2023-03-06 09:51:21 +0000 | [diff] [blame] | 46 | }; |