#Is it posible to access filesystem?

5 messages · Page 1 of 1 (latest)

real hamlet
#

I've made a NextJs project, and i have a couple of api endpoints that access to specific folders that contains .json files. Works really fine in localhost, but when it's deploy / prod, is not getting this files. Any answer is appreciated.

fringe forge
#

You have access to the project files

#

but that is not the problem here

#

When nextjs is built, it is output to the .next directory. This does not contain external files (except the ones in public/)

#

essentially the directory structure is not the same in development and prod mode.