You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use your fine docs to run Express as a serverless function on Netlify, but my function file is written in TypeScript, which is necessary for my use case.
I've tried:
consthandler=serverless(app);export{handler};
Unfortunately, this results in a 404 when I try to do a get on a route when the function is being served by netlify functions:serve, using the Netlify CLI.
Am I missing a step here? Did I do the export wrong? A TypeScript example would be very useful here.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi there,
I'm trying to use your fine docs to run Express as a serverless function on Netlify, but my function file is written in TypeScript, which is necessary for my use case.
I've tried:
Unfortunately, this results in a 404 when I try to do a
get
on a route when the function is being served bynetlify functions:serve
, using the Netlify CLI.Am I missing a step here? Did I do the export wrong? A TypeScript example would be very useful here.
Thanks!
The text was updated successfully, but these errors were encountered: