docs: updated astro to add external example + added hint for astro db issues on v5

This commit is contained in:
dswbx
2024-12-04 15:54:33 +01:00
parent a4079804c2
commit 067213ff60

View File

@@ -8,6 +8,9 @@ import InstallBknd from '/snippets/install-bknd.mdx';
Install bknd as a dependency: Install bknd as a dependency:
<InstallBknd /> <InstallBknd />
<Note>The guide below assumes you're using Astro v4. We've experienced issues with Astro DB
using v5, see [this issue](https://github.com/withastro/astro/issues/12474).</Note>
For the Astro integration to work, you also need to [add the react integration](https://docs.astro.build/en/guides/integrations-guide/react/): For the Astro integration to work, you also need to [add the react integration](https://docs.astro.build/en/guides/integrations-guide/react/):
```bash ```bash
npx astro add react npx astro add react
@@ -117,4 +120,5 @@ export const prerender = false;
</ul> </ul>
``` ```
Check the [astro example](https://github.com/bknd-io/bknd/tree/main/examples/astro) for more implementation details. Check the [astro repository example](https://github.com/bknd-io/bknd/tree/main/examples/astro)
for more implementation details or a [fully working example using Astro DB](https://github.com/dswbx/bknd-astro-example).