#Server responds in development but not in production
26 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
something should show up in the log
go to deployment => log
ok
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'app/api/storage/servers.json'
}```
I need to redo the paths?
what should I keep the paths as?
the problem is that fs doesn't work on vercel because vercel is serverless
since it's json already i'd just import it
I need to write too
import data from "./path/to/data.json"
write then use a database or vercel kv
any other hosting which work with fs?
any server-ful hosting will work with fs
your private server, digital ocean, render, fly.io, railway, etc
but they are not free
conventional hosting is always more expensive than serverless
This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1151080393815113728 message)