Added advanced branding

This commit is contained in:
Sebastian Weise 2022-10-31 11:55:53 +01:00
parent 29fa4fe3bd
commit 7bf83d65b9
8 changed files with 50 additions and 12 deletions

View file

@ -3,7 +3,7 @@ const pkg = require('./package.json');
const contentSecurityPolicy = `
default-src 'self';
img-src *;
img-src * 'self' data:;
script-src 'self' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
connect-src 'self' api.umami.is;
@ -52,6 +52,10 @@ module.exports = {
return config;
},
images: {
dangerouslyAllowSVG: true,
domains: [new URL(process.env.NEXT_PUBLIC_CUSTOM_LOGO_URL).hostname],
},
async headers() {
return [
{