#Code not compiled for server side

2 messages · Page 1 of 1 (latest)

north pelican
#

Hi all,
I have added a server endpoint in src/route/something/index.ts

I am using a third party npm package which has server functions and client functions. When I run my code locally, everything is just fine. However, when I deploy (to Netlify in my case), my server functions are missing. My guess is that during the build, the code was built as client side and thus the server side methods are missing. Is there a way to "force" the build to "understand" that this is a server build file and not a client one?

Thanks.

north pelican
#

BUMP