Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor: Centralize Domain URLs via DOMAINS Object for Improved Configurability #63

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
tech-sushant wants to merge 5 commits into browserstack:main
base: main
Choose a base branch
Loading
from tech-sushant:central-urls

Conversation

Copy link
Collaborator

@tech-sushant tech-sushant commented Jun 2, 2025

This pull request introduces a centralized domain management system by adding a DOMAINS constant in src/lib/domains.ts and refactoring multiple files to use this constant for URL definitions. This change improves maintainability and simplifies updates to domain URLs across the codebase.

@@ -0,0 +1,17 @@
export const DOMAINS = {
API: process.env.API_DOMAIN || "https://api.browserstack.com",
Copy link
Collaborator

@pulkitsharma07 pulkitsharma07 Jun 3, 2025

Choose a reason for hiding this comment

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

Suggested change
API: process.env.API_DOMAIN || "https://api.browserstack.com",
API: process.env.BROWSERSTACK_API_DOMAIN || "https://api.browserstack.com",

Add BROWSERSTACK_ prefix to all env vars

Copy link
Collaborator

@pulkitsharma07 pulkitsharma07 left a comment

Choose a reason for hiding this comment

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

good work on this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@pulkitsharma07 pulkitsharma07 pulkitsharma07 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /