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

fix(nextjs): Avoid setting clerkUrl port when http(s) forwarded port and protocol is defined #1419

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

dimkl
Copy link
Contributor

@dimkl dimkl commented Jun 26, 2023

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

Description

  • npm test runs as expected.
  • npm run build runs as expected.

Issue: #1413
PR introducing issue: #1394

@dimkl dimkl self-assigned this Jun 26, 2023
@dimkl dimkl requested a review from nikosdouvlis as a code owner June 26, 2023 20:36
@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2023

🦋 Changeset detected

Latest commit: 15bd1a5

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

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs 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

@jit-ci jit-ci bot left a comment

Choose a reason for hiding this comment

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

✅ Great news! Jit hasn't found any security issues in your PR. Good Job! 🏆

@dimkl
Copy link
Contributor Author

dimkl commented Jun 26, 2023

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @dimkl - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.23.6-snapshot.11b9198
@clerk/chrome-extension 0.3.17-snapshot.11b9198
@clerk/clerk-js 4.50.2-snapshot.11b9198
eslint-config-custom 0.3.0
@clerk/clerk-expo 0.18.8-snapshot.11b9198
@clerk/fastify 0.5.5-snapshot.11b9198
gatsby-plugin-clerk 4.3.17-snapshot.11b9198
@clerk/localizations 1.22.0-snapshot.11b9198
@clerk/nextjs 4.21.11-snapshot.11b9198
@clerk/clerk-react 4.20.6-snapshot.11b9198
@clerk/remix 2.6.14-snapshot.11b9198
@clerk/clerk-sdk-node 4.10.13-snapshot.11b9198
@clerk/shared 0.19.1
@clerk/themes 1.7.5
@clerk/types 3.46.1-snapshot.11b9198

Tip: use the snippet copy button below to quickly install the required packages.

# @clerk/backend
npm i @clerk/backend@0.23.6-snapshot.11b9198
# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.17-snapshot.11b9198
# @clerk/clerk-js
npm i @clerk/clerk-js@4.50.2-snapshot.11b9198
# eslint-config-custom
npm i eslint-config-custom@0.3.0
# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.8-snapshot.11b9198
# @clerk/fastify
npm i @clerk/fastify@0.5.5-snapshot.11b9198
# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.3.17-snapshot.11b9198
# @clerk/localizations
npm i @clerk/localizations@1.22.0-snapshot.11b9198
# @clerk/nextjs
npm i @clerk/nextjs@4.21.11-snapshot.11b9198
# @clerk/clerk-react
npm i @clerk/clerk-react@4.20.6-snapshot.11b9198
# @clerk/remix
npm i @clerk/remix@2.6.14-snapshot.11b9198
# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.10.13-snapshot.11b9198
# @clerk/shared
npm i @clerk/shared@0.19.1
# @clerk/themes
npm i @clerk/themes@1.7.5
# @clerk/types
npm i @clerk/types@3.46.1-snapshot.11b9198

@dimkl
Copy link
Contributor Author

dimkl commented Jun 26, 2023

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @dimkl - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.23.6-snapshot.3f7b6c5
@clerk/chrome-extension 0.3.17-snapshot.3f7b6c5
@clerk/clerk-js 4.50.2-snapshot.3f7b6c5
eslint-config-custom 0.3.0
@clerk/clerk-expo 0.18.8-snapshot.3f7b6c5
@clerk/fastify 0.5.5-snapshot.3f7b6c5
gatsby-plugin-clerk 4.3.17-snapshot.3f7b6c5
@clerk/localizations 1.22.0-snapshot.3f7b6c5
@clerk/nextjs 4.21.11-snapshot.3f7b6c5
@clerk/clerk-react 4.20.6-snapshot.3f7b6c5
@clerk/remix 2.6.14-snapshot.3f7b6c5
@clerk/clerk-sdk-node 4.10.13-snapshot.3f7b6c5
@clerk/shared 0.19.1
@clerk/themes 1.7.5
@clerk/types 3.46.1-snapshot.3f7b6c5

Tip: use the snippet copy button below to quickly install the required packages.

# @clerk/backend
npm i @clerk/backend@0.23.6-snapshot.3f7b6c5
# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.17-snapshot.3f7b6c5
# @clerk/clerk-js
npm i @clerk/clerk-js@4.50.2-snapshot.3f7b6c5
# eslint-config-custom
npm i eslint-config-custom@0.3.0
# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.8-snapshot.3f7b6c5
# @clerk/fastify
npm i @clerk/fastify@0.5.5-snapshot.3f7b6c5
# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.3.17-snapshot.3f7b6c5
# @clerk/localizations
npm i @clerk/localizations@1.22.0-snapshot.3f7b6c5
# @clerk/nextjs
npm i @clerk/nextjs@4.21.11-snapshot.3f7b6c5
# @clerk/clerk-react
npm i @clerk/clerk-react@4.20.6-snapshot.3f7b6c5
# @clerk/remix
npm i @clerk/remix@2.6.14-snapshot.3f7b6c5
# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.10.13-snapshot.3f7b6c5
# @clerk/shared
npm i @clerk/shared@0.19.1
# @clerk/themes
npm i @clerk/themes@1.7.5
# @clerk/types
npm i @clerk/types@3.46.1-snapshot.3f7b6c5

@dimkl dimkl changed the title [WIP] fix(nextjs): Avoid setting clerkUrl port for http(s) if protocol is set [WIP] fix(nextjs): Avoid setting clerkUrl port when http(s) forwarded port and protocol is defined Jun 26, 2023
@dimkl dimkl changed the title [WIP] fix(nextjs): Avoid setting clerkUrl port when http(s) forwarded port and protocol is defined fix(nextjs): Avoid setting clerkUrl port when http(s) forwarded port and protocol is defined Jun 26, 2023
Copy link
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

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

This makes sense to me, added a minor comment but feel free to ignore

@dimkl dimkl merged commit 7045f6f into main Jun 27, 2023
8 checks passed
@dimkl dimkl deleted the js-483-nextjs-hostname branch June 27, 2023 11:17
@clerk-cookie clerk-cookie mentioned this pull request Jun 27, 2023
@clerk-cookie
Copy link
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants