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

Consider providing the same signature as Edge functions #2

Open
TooTallNate opened this issue Sep 18, 2023 · 0 comments
Open

Consider providing the same signature as Edge functions #2

TooTallNate opened this issue Sep 18, 2023 · 0 comments

Comments

@TooTallNate
Copy link

For the Deno runtime, I decided a while back to standardize on implementing one syntax for users to define their HTTP handler code, and that syntax was to match Edge functions (i.e. export default (req: Request) => Response | Promise<Response>).

This signature represents the ideal "Vercel syntax" IMO, and if we can keep it standardized between all supported JS runtimes, then it would make interoperability easier.

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

No branches or pull requests

1 participant