Next.js Discord

Discord Forum

Access files from outside the app folder

Unanswered
Pacific herring posted this in #help-forum
Open in Discord
Pacific herringOP
My project folder is structured this way:

Project
  L Game Server
  L Web
    L NextJS whole stuff


Now from "NextJS whole stuff" folder that would simply be the nextjs server folder, I have the need to access the Game Server folder for like, create and edit a few files. Is it possible?

15 Replies

Northern Wheatear
It is possible if you are running this locally or on a dedicated server
@Northern Wheatear It is possible if you are running this locally or on a dedicated server
Pacific herringOP
when is it not possible?
Northern Wheatear
If you are hosting the nextjs app by vercel its not possible
Pacific herringOP
well
basically this app will be " self hosted", people downloaod it and host it on their servers
so i dont think i have problems, do i?
Northern Wheatear
You mean the entire code of the project will be downloaded right?
Then it should be possible
Actually its better to try it out now with a simple example 😄
you should be able to use node fs on self hosted
Northern Wheatear
Yep
have you had errors with using it?
@riský have you had errors with using it?
Pacific herringOP
i still have to use it
gotta expect errors?
no, but i got OP mixed up and wonderd if anything went wrong for you to ask 😭