snow
None my my server APIs seem to be working #help
#❓・help #💬・discussion
I built a fullstack nuxt app. I tested everything on my local and it works fine. All the APIs work fine. But when I deploy to cloudflare pages. And then test the app I get an error
{
"url": "/api/admin/members",
"statusCode": 500,
"statusMessage": "",
"message": "__dirname is not defined",
"stack": ""
}
When I test the API with the live url I get the same weird error also.
Ironically, if I write a barebones API that does not but just returns a message or makes a DB query, it works fine. But anything more than this and I get the error
5 replies