-
Notifications
You must be signed in to change notification settings - Fork 1
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
Removes URLs from environment variables #362
Conversation
|
That's really nice 🙌 One small concern for me is that since we have only a single instance of |
“I considered this, but I’m struggling to determine if it’s actually an issue. The webhook URL is configured in the GitHub app and is always a single URL. Therefore, the host we store will be consistent. However, even if the URL host changes between invocations, wouldn’t we want to capture that change? This way, we store the host for each invocation and use it a few milliseconds later. There could be a race condition here, but I’m not sure how likely it is to occur in practice or what the best solution would be. |
Sounds like you've already considered this case. Thanks for the answer 🙏 I am comfortable with merging this. I don't think the modification of the |
This PR removes
NEXTAUTH_URL_INTERNAL
, previously needed to workaround a bug in the Auth.js 5.0 beta, which is no longer necessary.It also removes
FRAMNA_DOCS_BASE_URL
, used for constructing preview links in PR comments. We now dynamically extract the host from the URL that triggered the webhook, eliminating hardcoded URLs.This removes all hard-coded URLs, making it simpler to deploy Shape Docs and access it from different domains.