Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,19 @@ Then paste your API key into the code below:
<script>
flagsmith.init({
environmentID: '<add your API key here!>',
// Only needed if you are self-hosting Flagsmith or using a private cloud instance.
// Leave this out to use Flagsmith SaaS (edge.api.flagsmith.com).
// api: 'https://flagsmith.example.com/api/v1/',
onChange: (oldFlags, params) => {},
});
</script>
```

If you are self-hosting Flagsmith or using a private cloud instance, uncomment the `api` line and set it to your
Flagsmith API URL, including the `/api/v1/` path.

Now when the browser opens the web page, it will download the Javascript SDK and make a call to `edge.api.flagsmith.com`
to get the flags for our Environment. You can see this in the browser network tab:
(or your own API URL) to get the flags for our Environment. You can see this in the browser network tab:

<div style={{textAlign: 'center'}}><img width="75%" src="/img/quickstart/demo_create_7.png"/></div>

Expand Down
Loading