You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,7 +52,11 @@ execute the following steps manually.
51
52
_For more information on how to obtain an API key, please refer to the [obtaining an API key](/usage/obtaining-api-key) guide._
52
53
4. Add `<StringtaleProvider>` and Stringtale's CSS to your `RootLayout` in `app/layout.tsx` as such:
53
54
55
+
<Asidetype="caution">
56
+
**Important:** In order for Server Side rendering to keep working, you must import `StringtaleProvider` from `@stringtale/next` when using the app router.
@@ -70,4 +75,5 @@ execute the following steps manually.
70
75
}
71
76
```
72
77
For more information about RootLayout see the [NextJS documentation](https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#root-layout-required).
78
+
73
79
5. You're now ready to use Stringtale in your project. For more information on how to use Stringtale with React see our [React documentation](/front-end/react).
@@ -49,9 +51,13 @@ execute the following steps manually.
49
51
```
50
52
_For more information on how to obtain an API key, please refer to the [obtaining an API key](/usage/obtaining-api-key) guide._
51
53
4. Update your `App` component in `<PROJECT_DIRECTORY>/pages/_app.tsx` and wrap your app using `<StringtaleProvider>` as follows:
52
-
54
+
<Asidetype="caution">
55
+
**Important:** When using the pages router, you must import the `StringtaleProvider` from `@stringtale/react` or certain features such as login will break.
@@ -64,4 +70,5 @@ execute the following steps manually.
64
70
}
65
71
```
66
72
For more information about customizing the `App` component see the [NextJS documentation](https://nextjs.org/docs/pages/building-your-application/routing/custom-app).
73
+
67
74
5. You're now ready to use Stringtale in your project. For more information on how to use Stringtale with React see our [React documentation](/front-end/react).
0 commit comments