-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
handler
for manual GraphQL route setup
- Use `handler` for setting up GraphQL routes internally in the bundler. - The `handler` can be used manually, providing flexibility for cases where `.pylon/index.js` is not suitable (e.g., when mocking dependencies). - Using the `handler` allows for mocking since `.pylon/index.js` bundles all code, making mocking impossible. - GraphQL is now handled at the root path instead of `/graphql`, enabling full use of Yoga features. The `graphqlEndpoint` is still `/graphql/` - Lay the foundation for future configuration options via `export config: PylonConfig = {}`.
- Loading branch information
Showing
7 changed files
with
231 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
ec275a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for pylon-docs ready!
✅ Preview
https://pylon-docs-mmd5yrucm-schettns-projects.vercel.app
Built with commit ec275a8.
This pull request is being automatically deployed with vercel-action