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

Redirect to URL object instead of relative URL #73

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

guidovizoso
Copy link
Contributor

This fixes #48 and #71.

Why this is required: https://nextjs.org/docs/messages/middleware-relative-urls

Of course everything is up for discussion! Hope this helps and thanks for this starter.

@vercel
Copy link

vercel bot commented Mar 4, 2022

@guidovizoso is attempting to deploy a commit to the Platformize Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@gregonarash gregonarash left a comment

Choose a reason for hiding this comment

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

This seems to be obvious solution based on changes made to 12.1.

Thanks for pointing this out.

@steven-tey
Copy link
Contributor

Thank you for pointing this out! We're fixing this in the Typescript PR (#15) but will merge this to main anyways! :)

@steven-tey steven-tey merged commit a1dd8e6 into vercel:main Mar 18, 2022
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.

Relative URL warning in middleware
3 participants