Skip to content
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

Use Segment token from window if available #11107

Merged
merged 1 commit into from
Mar 16, 2022
Merged

Conversation

timroes
Copy link
Collaborator

@timroes timroes commented Mar 14, 2022

What

Closes #10450

This will enable usage of the window.SEGMENT_TOKEN to overwrite the build in REACT_APP_SEGMENT_TOKEN if available. Those token are already set on our cloud environments.

@timroes timroes requested a review from a team as a code owner March 14, 2022 13:37
@github-actions github-actions bot added the area/platform issues related to the platform label Mar 14, 2022
@@ -19,8 +19,8 @@ const configProviders: ValueProvider<Config> = [
// fileConfigProvider,
cloudEnvConfigProvider,
cloudWindowConfigProvider,
windowConfigProvider,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ℹ️ Required to make sure window has higher priority. This is the same order now than OSS has.

@timroes timroes requested a review from jamakase March 14, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate Segment tokens per environment
2 participants