thaitype / nammatham

Azure Functions Framework
https://nammatham.thaitype.dev/
MIT License
67 stars 2 forks source link

Use http server instead of express #113

Open mildronize opened 10 months ago

mildronize commented 10 months ago

see https://nextjs.org/docs/pages/building-your-application/configuring/custom-server

Expected Behavior

import { createServer } from 'node:http';
const dev = process.env.NODE_ENV !== 'production'

// when using middleware `hostname` and `port` must be provided below
const app = nammatham({ dev, hostname, port })

I think we can deprecated the main role of packages @nammatham/express, Previously, as a main server for azure functions dev

mildronize commented 10 months ago

PoC on branch main.issue-113, but need more to investigate