fix: handle external URLs in avatar rendering (#23) (#32)

* fix: issue 23, handle external URLs in avatar rendering

* fix: add google to the remote patterns

---------

Co-authored-by: Henry <henry_ball@hotmail.co.uk>
This commit is contained in:
Lonneke
2025-06-05 14:10:38 +02:00
committed by GitHub
parent 6eb17529f1
commit f88bd82044
4 changed files with 18 additions and 5 deletions

View File

@@ -26,7 +26,16 @@ const config = {
typescript: { ignoreBuildErrors: true },
images: {
domains: [env("NEXT_PUBLIC_STORAGE_DOMAIN") ?? ""],
remotePatterns: [
{
protocol: "https",
hostname: `*.${env("NEXT_PUBLIC_STORAGE_DOMAIN")}`,
},
{
protocol: "https",
hostname: "*.googleusercontent.com",
},
],
},
experimental: {
instrumentationHook: true,