Next.js Discord

Discord Forum

Icon not getting applied over the webpage

Answered
Ragdoll posted this in #help-forum
Open in Discord
RagdollOP
I have my custom icon in @/app/icon.png and I have deleted the favicon.ico but still its not getting applied over localhost.
This is inside export const meta
 icons: {
    icon: '@/app/icon.png',
    shortcut: '@/app/icon.png',
    apple: '@/app/icon.png'
  }
Answered by Ragdoll
Nevermind the nextjs config was configured to not allowed any png
export { auth as middleware } from './auth'

export const config = {
  matcher: ['/((?!api|_next/static|_next/image|favicon.ico|icon.png).*)']
}
View full answer

4 Replies

RagdollOP
I have deleted all the default icons yet this one is showing up instead
RagdollOP
Nevermind the nextjs config was configured to not allowed any png
export { auth as middleware } from './auth'

export const config = {
  matcher: ['/((?!api|_next/static|_next/image|favicon.ico|icon.png).*)']
}
Answer
RagdollOP
I fix it by add icon.png
i was about to say