Skip to content

Commit

Permalink
fix: not use vercel image
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 7, 2023
1 parent 2b6e8cc commit c8874f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions components/user-dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useSupabaseClient, useUser } from "@supabase/auth-helpers-react";
import { motion } from "framer-motion";
import { LayoutDashboard, LogOut } from "lucide-react";
import Image from "next/image";
import { useState } from "react";
import Popover from "~/components/shared/popover";
import { FADE_IN_ANIMATION_SETTINGS } from "~/utils/constants";
Expand Down Expand Up @@ -60,7 +59,7 @@ export default function UserDropdown() {
onClick={() => setOpenPopover(!openPopover)}
className="flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-gray-300 transition-all duration-75 focus:outline-none active:scale-95 sm:h-9 sm:w-9"
>
<Image
<img
alt={email}
src={image || `https://avatars.dicebear.com/api/micah/${email}.svg`}
width={40}
Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = {
domains: [
process.env.SUPABASE_HOSTNAME || 'xxxx.supabase.co', // to prevent vercel failed
"b.jimmylv.cn",
"avatars.githubusercontent.com",
"avatars.dicebear.com",
"i2.hdslb.com",
"s3-us-west-2.amazonaws.com",
// "i2.hdslb.com",
// "avatars.githubusercontent.com",
// "s3-us-west-2.amazonaws.com",
],
},
async rewrites() {
Expand Down

1 comment on commit c8874f8

@vercel
Copy link

@vercel vercel bot commented on c8874f8 Mar 7, 2023

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.