blob: 33c5c8e7091a56d3d2fa2700043a9b1e76d1e8d3 [file] [log] [blame]
module.exports = {
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: "@svgr/webpack",
options: {
svgo: false, // Optimization caused bugs with some of my SVGs
},
},
],
});
return config;
},
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "X-XSS-Protection",
value: "1; mode=block",
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
}
]
},
];
}
};