open-next icon indicating copy to clipboard operation
open-next copied to clipboard

Next 13 Favicon file

Open mattrobrob opened this issue 3 years ago • 8 comments

Next 13 allows you to create a favicon.ico file at /app. This will then automatically add a <link> to the head of the document for you. Docs here

I have found that the favicon file is not included in the static assets folder of .open-next and is not being uploaded to the S3 bucket when using npx sst deploy.

mattrobrob avatar Jul 12 '23 21:07 mattrobrob

Oh interesting. Can you post this in #open-next on Discord? We'll take a look.

jayair avatar Jul 14 '23 23:07 jayair

This is a Next quirk that hasn't been parity in open-next. You'll need to put your favicon.ico in /public

khuezy avatar Aug 01 '23 22:08 khuezy

@mattkinnersley would you be willing to implement this? I don't think open-next needs to do anything special. Nextjs should look at the icons stuff at the root app folder and do its magic. All open-next needs to do is to copy the icon to the public folder before it builds here: https://github.com/serverless-stack/open-next/blob/main/packages/open-next/src/build.ts#L54

khuezy avatar Aug 02 '23 17:08 khuezy

@mattkinnersley want to take this on?

jayair avatar Sep 15 '23 21:09 jayair

i have the same issue

vl-kp avatar Oct 26 '23 12:10 vl-kp

I will take a look at doing this next week 👍

mattrobrob avatar Oct 27 '23 07:10 mattrobrob

Just about to take a look at this but looks like @annleefores beat me to it

mattrobrob avatar Oct 31 '23 15:10 mattrobrob

It was a relatively simple solution, so I decided to give it a try and help save everyone some time 😅

annleefores avatar Oct 31 '23 15:10 annleefores