Error GET ico or manifest in dynamic pages
Answered
Николя posted this in #help-forum
Original message was deleted.
Answered by riský
like you can have
/app/favicon.ico (the favicon file in root of app folder)14 Replies
can you show how you added it to your layout? like in metadata file or manifest file places there?
like this
export const metadata = {
icons: {
icon: [
'@/public/ico/favicon.ico?v=4'
],
apple: [
'@/public/ico/apple-touch-icon.png?v=4'
],
shortcut: [
'@/public/ico/apple-touch-icon.png'
]
}
}@riský can you show how you added it to your layout? like in metadata file or manifest file places there?
I'm guessing there's something wrong with the path, but I don't know how to fix it.
the icons should just be
/ for root of public like /ico/favicon.ico?v=4 for first oneim more confused how it worked normally...
@Николя but also, if this icon your using everywhere, you can put import them add them to metadata too (i think the apple touch icons also too)
favicon.ico in root of appdir, and it will auto @riský <@945059810351665154> but also, if this icon your using everywhere, you can put `favicon.ico` in root of appdir, and it will auto ~~import them~~ add them to metadata too (i think the apple touch icons also too)
Do you mean move the folder with icons to the root of the directory?
like you can have
/app/favicon.ico (the favicon file in root of app folder)Answer
but yeah move those images to the root app dir
i think for shortcut you may have to copy the image, or just add it to metadata (as they are still accessible like you would think in public)
mgm, oke, i will try