Skip to content

Commit

Permalink
feat: support svgs with next/image
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Mar 29, 2022
1 parent 5f7102b commit a9f4bb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
}
})

0 comments on commit a9f4bb3

Please sign in to comment.