Getting image for next js Image outside the app folder
Unanswered
Richard Evanson posted this in #help-forum
I am making 2 system project - website with next js and app with c#. They both will be using images so I have stored all images in outside folder for them both to pick but I am not sure how to do that in next js.
this is path to app folder
SlidingGame\Website\game_website
and this is path to images
SlidingGame\Images
I have something like this currently written
this is path to app folder
SlidingGame\Website\game_website
and this is path to images
SlidingGame\Images
I have something like this currently written
<Image
className={styles.mainImage}
src={'/SlidingGame/Images/' + image +'.png'}
height={500}
width={500}
alt='Current image'
/>1 Reply
image is just image name like frog or mountain which I get from somewhere for this modal