Publishing Images On My Next.js Site
NOTE: You have to update the file to manually add in the images right now:
Code
~/workshop/alanwsmith.com/site/components/Img.js
Image calls are made with:
Code
-- html
-- image
-- file_name
the alt text
The image files themselves are stored at the project root in a folder called:
#+begin_example
_images
#+end_example
Files are dropped in there directly with no sub folders.
The images are rendered via `components/Img.js`
That file is build by `site_gimoire_publisher/index.js` every time it runs.
The reason for the build is that the image files have to be imported and then mapped in to get them to work in the native Next.js way.
A bit of a hack, but it works.