@togglely/sdk-react 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,6 +21,7 @@ function App() {
21
21
  return (
22
22
  <TogglelyProvider
23
23
  apiKey="your-api-key"
24
+ project="web-app"
24
25
  environment="production"
25
26
  baseUrl="https://your-togglely-instance.com"
26
27
  initialContext={{
@@ -45,6 +46,7 @@ import { getTogglelyState } from '@togglely/sdk-react';
45
46
  export async function getServerSideProps() {
46
47
  const toggles = await getTogglelyState({
47
48
  apiKey: process.env.TOGGLELY_API_KEY,
49
+ project: 'web-app',
48
50
  environment: 'production',
49
51
  baseUrl: 'https://your-togglely-instance.com'
50
52
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglely/sdk-react",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "React SDK for Togglely - Feature toggles with hooks",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",