Skip to content

TypeScript Example #28

Open
Open
@kimfucious

Description

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:

const handler = 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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions