Hi,
To anyone who is reading this thread looking for a solution to access files in the public folder at runtime but would prefer a simple solution that works with next you can do the following:
Create a new folder: "./pages/api/public" Add a new file to the folder: "[[...slug]].js" Add the following code to the file: