How to serve static files from a graphql yoga server? Or how to save files from graphql to next.js' public folder? #11990
Unanswered
jamestrenda
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using next.js as my front-end framework, and I understand how to serve static files within the context of next.js using the /public directory, but if I'm saving files to the file system using graphql-upload, how do I then serve those files using next.js?
And before anyone asks why I'm uploading files to the file system and not an already optimized api like Cloudinary, the answer is because I'm not allowed to. Yeah.
So, I know this question is not specific to next.js, but I'm exhausting all avenues of help and I feel like a lot of people are using these technologies together, so hopefully someone has come across this scenario and can help me get something working.
Thanks everyone!
Beta Was this translation helpful? Give feedback.
All reactions