Next.js Discord

Discord Forum

Icon

Answered
deathlybower959 posted this in #help-forum
Open in Discord
App dir
v13.4.5

Trying to access the ico files in the public folder, but not sure how to access them
Answered by joulev
If you use lowercase head, it should work assuming your link tag is correct
View full answer

34 Replies

@joulev btw you should've just put it in `app/favicon.ico` <https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons#image-files-ico-jpg-png>
i noticed that in the docs, and was planning on doing that. The only problem is i want to the icon to change depending on the preferred browser theme, as its a black logo, which would blend it too well with the background
there is also a white variation, so i was hoping to have a dynamic one
oh wait the images didnt upload
hold on
(same structure in the white folder)
root layout
i had upload these images on thread creation, not sure why they didnt go through
@deathlybower959 root layout
In the app directory you dont have next/head
oh thats what i thought
If you use lowercase head, it should work assuming your link tag is correct
Answer
surprised they didnt give a warning about that
@joulev If you use lowercase head, it should work assuming your link tag is correct
yea the link tag is correct, it worked in another project of mine
im currently migrating from cra to next
@joulev If you use lowercase head, it should work assuming your link tag is correct
Yeah then only need to use lowercase head I think
alr
dev server starting now
ah yup perfect
thank u very much!
how do i mark as a solution?
or is that only for mods
Original message was deleted
Check this
yea i looked for that
wait do i have to restart discord
hold on
yup required a discord restart
Yeah it’s new
Thanks
wow thats quite a fast caching time
Original message was deleted
i would suggest adding that as a note or something
if the app doesnt appear, restart discord to refresh the cache
or smthn like that
Thanks, I forwarded this to the person running this bot