Skip to content

feat(remix,backend): Repo level config for remix#1470

Merged
dimkl merged 4 commits intomainfrom
remix_repo_level_config
Aug 4, 2023
Merged

feat(remix,backend): Repo level config for remix#1470
dimkl merged 4 commits intomainfrom
remix_repo_level_config

Conversation

@desiprisg
Copy link
Copy Markdown
Contributor

@desiprisg desiprisg commented Jul 11, 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.

This PR implements the repo level config for remix. Had to make some additions to the backend package, so it may be worthwhile to add those params to the other backend packages as well.

remix env example

CLERK_SIGN_IN_URL=/sign-in
CLERK_SIGN_UP_URL=/sign-up
CLERK_AFTER_SIGN_IN_URL=/
CLERK_AFTER_SIGN_UP_URL=/

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 11, 2023

🦋 Changeset detected

Latest commit: 172838b

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

This PR includes changesets to release 6 packages
Name Type
@clerk/remix Minor
@clerk/backend Minor
@clerk/fastify Patch
gatsby-plugin-clerk Patch
@clerk/nextjs Patch
@clerk/clerk-sdk-node 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

@desiprisg desiprisg changed the title feat(remix,backend): Repo level config for remix feat(remix,backend): Repo level config for remix (WIP) Jul 11, 2023
Copy link
Copy Markdown

@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! 🏆

@desiprisg desiprisg marked this pull request as ready for review July 12, 2023 22:35
@desiprisg desiprisg requested review from anagstef, dimkl and gkats July 12, 2023 22:39
@desiprisg desiprisg changed the title feat(remix,backend): Repo level config for remix (WIP) feat(remix,backend): Repo level config for remix Jul 12, 2023
@desiprisg desiprisg requested review from raptisj and tmilewski July 12, 2023 22:40
opts.afterSignUpUrl ||
getEnvVariable('CLERK_AFTER_SIGN_UP_URL') ||
(context?.CLERK_AFTER_SIGN_UP_URL as string) ||
'';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

☁️ If we had a centralized config object, probably this (and the 3 following added lines) would have been the change to support the Repo level config for remix. Right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We'd also have to include the options in authenticateRequest.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@dimkl That is correct. We need to bring this up again now that we have 2 packages using repo-level config otherwise, this will become unwieldy

Copy link
Copy Markdown
Contributor

@panteliselef panteliselef left a comment

Choose a reason for hiding this comment

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

💯

@dimkl dimkl force-pushed the remix_repo_level_config branch from 6ad0da8 to 172838b Compare August 4, 2023 12:20
@dimkl dimkl merged commit 30fcdd5 into main Aug 4, 2023
@dimkl dimkl deleted the remix_repo_level_config branch August 4, 2023 12:37
@clerk-cookie clerk-cookie mentioned this pull request Aug 4, 2023
@clerk-cookie
Copy link
Copy Markdown
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 Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants