Skip to content

Commit

Permalink
update favicon fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Jan 20, 2024
1 parent 83fea7d commit 3ecbd15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions app/dashboard/subscriptions/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export const columns: ColumnDef<SubscriptionsData>[] = [
return (
<div className="relative flex items-center font-medium">
<Image
className="absolute inline-block text-transparent"
src={`https://www.google.com/s2/favicons?domain=${url}`}
width={14}
height={14}
className="absolute inline-block text-transparent rounded-full"
src={`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${url}&size=64`}
width={24}
height={24}
alt={name}
/>
<a target="_blank" className="ml-6 underline hover:opacity-80" href={url} rel="noreferrer">
<a target="_blank" className="ml-10 underline hover:opacity-80" href={url} rel="noreferrer">
{name}
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/add/subscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function AddSubscriptions({ show, onHide, mutate, selected, looku
Website
{hasValidUrl && state.url ? (
<Image
src={`http://www.google.com/s2/favicons?domain=${state.url}&sz=125`}
src={`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${state.url}&size=64`}
width={15}
height={15}
alt={state?.name}
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ['www.google.com'],
domains: ['t0.gstatic.com'],
},
async headers() {
return [{ source: '/(.*)', headers: securityHeaders }];
Expand Down

1 comment on commit 3ecbd15

@vercel
Copy link

@vercel vercel bot commented on 3ecbd15 Jan 20, 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.