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

Localhost Mode #26

Open
NickFratinTR opened this issue Aug 17, 2022 · 1 comment
Open

Localhost Mode #26

NickFratinTR opened this issue Aug 17, 2022 · 1 comment

Comments

@NickFratinTR
Copy link

I'm trying to run split in localhost mode like you can in the Javascript sdk. It doesn't seem to be working and I'm wondering if that is a feature that just isn't ready yet in this Angular sdk, or if I'm missing some configuration?

@maxrzaw
Copy link

maxrzaw commented Jun 14, 2024

For anyone finding this later. Localhost mode is supported by the angular-sdk-plugin. You need to add LocalhostFromObject() to your config.
For example:

config: SplitIO.IBrowserSettings = {
  core: {
    authorizationKey: '',
    key: '',
  },
  sync: {
    localhostMode: LocalhostFromObject(),
  },
  // localhost mocks go here
  features: {
    feature_flag_name: 'on',
  },
};

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

No branches or pull requests

2 participants