Include a folder in production build
Answered
Say's Phoebe posted this in #help-forum
Say's PhoebeOP
I have a folder named database which contains 4 json files, I want this folder available for api's to access it through fs, how to do this, or is there a better way of doing such a thing?
7 Replies
I think you can import json doucuments instead using fs
Answer
@Say's Phoebe
Are they static? Do you intend on modifying them in run time like an actual database?
If you are hosting on vercel, its not going to work. If your hosting via VPS there are libraries for it. I can recommend
ghost ping 

Hrmm? I didnt ping you, I didnt see any other messages must have been from before I came in here
@James4u I think you can import json doucuments instead using fs
Say's PhoebeOP
thanks a lot, the code looks much cleaner and performance is much better