blob: 4d67c665ff70e03d2a67b8536164528629f568be [file] [log] [blame]
Skyler Grey6c3d4632023-03-06 09:51:21 +00001require('dotenv').config();
2
Samuel Shuert016ea022021-09-01 16:17:24 -05003module.exports = {
4 reactStrictMode: true,
pineafan78727452021-11-04 21:25:07 +00005 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 },
pineafan74f16742022-11-07 21:57:55 +000019 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 ];
TheCodedProfc86e44b2023-02-28 17:30:57 -050039 },
40 images: {
41 domains: ["picsum.photos", "cdn.discordapp.com"]
Skyler Grey6c3d4632023-03-06 09:51:21 +000042 },
43 env: {
44 NUCLEUS_CALLBACK: process.env.NUCLEUS_CALLBACK,
pineafan74f16742022-11-07 21:57:55 +000045 }
Skyler Grey6c3d4632023-03-06 09:51:21 +000046};