Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use http server instead of express #113

Open
mildronize opened this issue Jan 17, 2024 · 1 comment
Open

Use http server instead of express #113

mildronize opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@mildronize
Copy link
Collaborator

mildronize commented Jan 17, 2024

  • Reducing dependencies between azure function adapter and express plugins
  • explicit use of dev mode like Next.js custom server

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant