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

Plugin ideas #220

Open
estrattonbailey opened this issue Jun 17, 2022 · 0 comments
Open

Plugin ideas #220

estrattonbailey opened this issue Jun 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@estrattonbailey
Copy link
Member

  • plugins should be able to inject a route, basically { route?: string, getStaticPaths?: () => string[], handler: (ev, ctx) => Response }
  • plugins should be able to post-process responses to inject scripts and the like

Why?

  • it'd be cool to be able to add a plugin that adds, say, authentication
    • or on-demand bundling of some assets
  • maybe inject a script that hits a set of APIs that were injected by the same plugin
@estrattonbailey estrattonbailey added the enhancement New feature or request label Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant