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

Add netlify redirects support #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Snapstromegon
Copy link
Member

@Snapstromegon Snapstromegon commented Mar 9, 2023

This is mainly meant for discussion purposes.

It adds a new middleware netlifyRedirectMiddleware, which uses netlify packages to parse and handle redirects.
It's not the best code right now. I'm not really happy with how the onRequestHandler is called internally. It's also missing tests right now.

@zachleat, maybe you can share some first opinions.

fixes #16

Snapstromegon and others added 2 commits March 9, 2023 15:13
This is an incomplete implementation for Add adapters for redirects middleware 11ty#16

Signed-off-by: Raphael Höser <[email protected]>
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.

Add adapters for redirects middleware
1 participant