npm init -y npm i express netlify-cli netlify-lambda serverless-http edit package.json "scripts": { "build": "netlify deploy --prod" } create functions/apps.js //app.js const express = require("express"); const serverless = require("serverless-http"); const app = express(); const router = express.Router(); router.get("/", (req, res) => { res.send("App is running.."); }); app.use("/.netlify/functions/app", router); module.exports.handler = serverless(app); create netlify.toml [build] functions = "functions" create .gitignore node_modules/ .netlify git init git add . git commit -m "netlify init" netlify init netlify deploy go to Function logs link app > Endpoint netlify deploy --prod ==== using git npm init npm i express serverless-http @netlify/functions @types/express express npm install create netlify/functions/api.ts import express, { Router } from "express"; import serverless from "serverless-http"; const api = express(); const router = Router(); router.get("/hello", (req, res) => res.send("Hello World!")); api.use("/api/", router); export const handler = serverless(api); create netlify.toml [functions] external_node_modules = ["express"] node_bundler = "esbuild" [[redirects]] force = true from = "/api/*" status = 200 to = "/.netlify/functions/api/:splat"