Next.js Discord

Discord Forum

How to change path to favicon in next.js?

Answered
Yellowhead catfish posted this in #help-forum
Open in Discord
Avatar
Yellowhead catfishOP
I want to make sure that the favicon is not in src/app but conditionally in src/img
Answered by risky
It either needs to be in app folder or public folder where you set its location in metadata object
View full answer

8 Replies

Avatar
Yellowhead catfishOP
I want to make sure that the favicon is not in src/app but conditionally in src/img
Avatar
It either needs to be in app folder or public folder where you set its location in metadata object
Answer
Avatar
I mean if you use git you can do some sketchy simlinks but pls don't
Avatar
Asian black bear
🙂 fastest answer
in 2mins 😁
Avatar
@risky I mean if you use git you can do some sketchy simlinks but pls don't
Avatar
technically you can put the image anywhere and use .src from importing the image, but yeah that's way too overkill
hmm that would be useful for monorepos though
Avatar
OK the 3rd option is to host the favicon on different server (i forgot about it)