From a9f4bb3650ec307c42b8c0547c46155093b36fe3 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 29 Mar 2022 13:25:32 -0400 Subject: [PATCH] feat: support svgs with next/image --- next.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 9ee6d24..ffb6762 100644 --- a/next.config.js +++ b/next.config.js @@ -14,6 +14,8 @@ module.exports = withBundleAnalyzer({ 'abs.twimg.com', 'transitivebullsh.it' ], - formats: ['image/avif', 'image/webp'] + formats: ['image/avif', 'image/webp'], + dangerouslyAllowSVG: true, + contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;" } })