How to add another custom directory as like as `public` on Next.js 15 ?
Unanswered
Ragdoll posted this in #help-forum
RagdollOP
By default I can get image from
/workspace/public
directory like this <Image
src={`/images/categories/toy.svg`}
alt={item.text}
width={50}
height={50}
/>
. But i want to add another directory which is /workspace/src/media/images
. How can I do this on next.js 15?1 Reply
Giant panda
@Ragdoll why not simply using this pattern
/workspace/src/public/assets/images/[MODULE_1]/categories/toy.svg
/workspace/src/public/assets/images/[MODULE_2]/anything/anything.svg
/workspace/src/public/fonts/fontfamily1/abc.ttf
/workspace/src/public/assets/images/[MODULE_1]/categories/toy.svg
/workspace/src/public/assets/images/[MODULE_2]/anything/anything.svg
/workspace/src/public/fonts/fontfamily1/abc.ttf