8000 fix(converters): Ensure x-forwarded-proto is set to http when running locally by sommeeeer · Pull Request #887 · opennextjs/opennextjs-aws · GitHub
[go: up one dir, main page]

Skip to content

fix(converters): Ensure x-forwarded-proto is set to http when running locally #887

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

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

Conversation

sommeeeer
Copy link
Contributor
@sommeeeer sommeeeer commented May 30, 2025

Discussed in #686 over at opennextjs-cloudflare

next-auth and possibly more libraries rely on the x-forwarded-proto header to be http to work out of the box when run locally. In next start or next dev they set this to http when ran locally.

To make opennextjs-cloudflarejs preview and our node converter when running OpenNext locally behave the same we would want to set this header to http. This would make the user not have to set an AUTH_URL in those modes.

Copy link
changeset-bot bot commented May 30, 2025

🦋 Changeset detected

Latest commit: 68bb9b0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch
app-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
pkg-pr-new bot commented May 30, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@887

commit: 68bb9b0

@sommeeeer sommeeeer changed the title fix(converters): Ensure x-forwarded-proto is set to http when running… fix(converters): Ensure x-forwarded-proto is set to http when running locally May 30, 2025
@sommeeeer sommeeeer requested a review from khuezy May 30, 2025 14:58
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.

3 participants
0