Skip to content

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
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tech-sushant
Copy link
Contributor

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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants