I have a static blog built using next.js and hosted by vercel.
I would like separate the code and the blog content (markdown files, images, etc) into different repos and make the content repo a submodule within the blog repo.
This would be easy if all the content were in the same directory, but the blog content is stored in two directories - content is in a data
directory and images and other assets in public/
.
I've tried moving the public assets into a subdirectory in data
and creating a symlink to the assets from the public
directory. However this does not work when deployed to vercel.
Hardlinks do not work for directories.
Whats a good solution to this? Can I configure next.js to find public assets in the data/
directory?