Warning: Undefined array key "HTTP_REFERER" in /home/u522501990/domains/makemeengr.com/public_html/wp-content/themes/generatepress/generatepress.theme#archive on line 43

Unable to load images from static folder

from the docs:

Next.js can serve static files, like images, under a folder called
public in the root directory. Files inside public can then be
referenced by your code starting from the base URL (/).

So, first add an image to public/my-image.png and then you can reference it:

<img src="/my-image.png" />

I think next.js will have a watch on this directory so you won’t need to restart your server every time you put something in there.

Leave a Comment

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedusedueduedusedusedusedueduedu