-
Notifications
You must be signed in to change notification settings - Fork 44.4k
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
Add URL swapping for marketplace based on environment #8418
base: dev
Are you sure you want to change the base?
Add URL swapping for marketplace based on environment #8418
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
@@ -7,7 +7,9 @@ interface MarketPopupProps extends ButtonHTMLAttributes<HTMLButtonElement> { | |||
|
|||
export default function MarketPopup({ | |||
className = "", | |||
marketplaceUrl = "http://platform.agpt.co/marketplace", | |||
marketplaceUrl = process.env.APP_ENV === "prod" | |||
? "https://production-marketplace-url.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep the existing link for prod and add a spot for one for "dev": https://dev-builder.agpt.co/marketplace and finally have the localhost fallback for local
51dcbe2
to
8cd91c9
Compare
Fixes #8371
These changes are needed to automatically switch between local and production marketplace URLs, ensuring the app connects to the correct environment (dev or prod) without manual intervention.
Changes 🏗️