Skip to content

Commit

Permalink
use remotepatterns for image serving
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Jan 8, 2024
1 parent 807edf4 commit 2fdcd91
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
13 changes: 13 additions & 0 deletions app/components/rich-text/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ const options = {
)
}
},
[BLOCKS.QUOTE]: (node) => {
const transformedChildren = documentToReactComponents(node, {
renderNode: {
[BLOCKS.PARAGRAPH]: (node, children) => children,
[BLOCKS.QUOTE]: (node, children) => children,
},
})
return (
<blockquote className="text-sm italic -mt-4 mb-8 text-right font-body text-th-fgd-4 tracking-wider">
{transformedChildren}
</blockquote>
)
},
},
// renderText: (text) => text.replace('!', '?'),
}
15 changes: 14 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ const nextConfig = {
transpilePackages: ['gsap'],
i18n,
images: {
domains: ['raw.githubusercontent.com', 'arweave.net'],
remotePatterns: [
{
protocol: 'https',
hostname: 'raw.githubusercontent.com/**',
},
{
protocol: 'https',
hostname: 'arweave.net/**',
},
{
protocol: 'https',
hostname: 'img.fotofolio.xyz/**',
},
],
},
reactStrictMode: true,
async redirects() {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

1 comment on commit 2fdcd91

@vercel
Copy link

@vercel vercel bot commented on 2fdcd91 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.