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

Support for an src/api.ts file #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

campbellman
Copy link
Owner

Summary

This adds support for a new optional file (default api.ts) where developers can add custom middleware, non-react endpoints, and define a custom handler based on their deployment needs.

Motivations

Caveats

});

// platform specific handling here
export default defineApiHandler(async (honoApp, opts) => {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs more thought, but the idea is to define platform specific handler logic here.

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

Successfully merging this pull request may close these issues.

1 participant