Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

fix(lambda-at-edge): fix broken redirects with full URLs as destinations #638

Merged
merged 6 commits into from
Sep 30, 2020

Conversation

dphang
Copy link
Collaborator

@dphang dphang commented Sep 30, 2020

This fixes: #637

  • Handle URLs as destinations such as https://example.com or http://example.com

Tests

Updated all tests.

},
{
source: "/invalid-destination",
destination: "ftp://example.com",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right now just supporting https:// and http:// protocol, even though this is a valid URL. Let me know if you are other thoughts

@danielcondemarin danielcondemarin merged commit ee95e54 into master Sep 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the dphang/fix-redirects branch September 30, 2020 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue using Redirects in next.config.js
2 participants