Nextjs removed the public folder in 14.2.8
Answered
Satin Angora posted this in #help-forum
Satin AngoraOP
where do i store my images for the website now?
Answered by joulev
you can still create the folder by yourself if you need it.
that said to serve images, it's not necessary to create a public folder.
that said to serve images, it's not necessary to create a public folder.
5 Replies
@Satin Angora where do i store my images for the website now?
you can still create the folder by yourself if you need it.
that said to serve images, it's not necessary to create a public folder.
that said to serve images, it's not necessary to create a public folder.
Answer
Satin AngoraOP
creating a public folder worked it was able to get my src="/images/logo.png"
if its not necessary to serve it in the public folder where else would next.js recognise the images from?
@Satin Angora creating a public folder worked it was able to get my src="/images/logo.png"
the recommended method is
then you can put the file anywhere (and typically, you would put it in the same folder as the file calling it).
import logo from "./path/to/logo.png";
<Image src={logo} />then you can put the file anywhere (and typically, you would put it in the same folder as the file calling it).
if you need to use
<img> thenimport logo from "./path/to/logo.png";
<img src={logo.src} />