Skip to content

Conversation

tech-sushant
Copy link
Collaborator

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