Skip to content

Commit

Permalink
Add init content for prisma optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
carlagn committed Jul 19, 2024
1 parent ba605de commit a599a26
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
95 changes: 95 additions & 0 deletions content/700-optimize/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
title: ''
metaTitle: 'Prisma Optimize'
metaDescription: 'Prisma Optimize enables real-time database events with type-safe Prisma Client subscriptions.'
sidebar_position: 0
pagination_next: 'pulse/what-is-pulse'

---

import {
Bolt,
BorderBox,
BoxTitle,
Database,
Grid,
LinkCard,
List,
SignalStream,
SquareLogo,
Separator
} from '@site/src/components/GettingStarted';

import {
IconTitle
} from '@site/src/components/shortcodes/index';


<IconTitle heading="h1" icon="fa-solid fa-signal-stream" iconColor="#16A394">Prisma Optimize</IconTitle>

[Prisma Pulse](https://www.prisma.io/data-platform/pulse) lets you subscribe to any changes in your database easily and in a type-safe way using Prisma Client, enabling you to trigger events and actions in real-time.

<Grid>
<LinkCard
icon="fa-solid fa-arrow-right"
title="Get started"
desc="Add Pulse to your app in minutes to stream database changes to your app in real-time."
link="/pulse/getting-started"
/>
<LinkCard
icon="fa-brands fa-github"
title="Examples"
desc="Explore our ready-to-run examples using Pulse."
link="https://github.com/prisma/prisma-examples?tab=readme-ov-file#prisma-pulse"
/>
</Grid>
<br/>

## Supported databases and providers

Pulse works with your existing database and providers.

<List framed style={{ alignItems: `center`}}>
<SquareLogo
url="/pulse/database-setup/general-database-instructions"
image={'/img/technologies/postgresqlsimple.svg'}
tech="PostgreSQL"
/>
<Separator />
<List style={{marginTop: 0}} split>
<SquareLogo
url="pulse/database-setup"
image={'/img/technologies/gcp.svg'}
tech="GCP"
/>
<SquareLogo
url="/pulse/database-setup/aws-rds"
image={'/img/technologies/aws.svg'}
imageDark={'/img/technologies/awsdark.svg'}
tech="AWS"
/>
<SquareLogo
url="/pulse/database-setup/supabase"
image={'/img/technologies/supabase.svg'}
tech="Supabase"
/>
<SquareLogo
url="/pulse/database-setup/neon"
image={'/img/technologies/neon.svg'}
tech="Neon"
/>
<SquareLogo
url="/pulse/database-setup/railway"
image={'/img/technologies/railway.svg'}
imageDark={'/img/technologies/railway-dark.svg'}
tech="Railway"
/>
</List>
</List>

<br />

## In this section

<Subsections depth="3" />

7 changes: 7 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ const config: Config = {
className: "indigo",
label: "ORM",
},
{
type: "docSidebar",
sidebarId: "optimizeSidebar",
position: "left",
className: "teal",
label: "Optimize",
},
{
type: "docSidebar",
sidebarId: "accelerateSidebar",
Expand Down
14 changes: 14 additions & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@ const sidebars: SidebarsConfig = {
items: [{ type: "autogenerated", dirName: "200-orm" }],
},
],
optimizeSidebar: [
{
type: "category",
label: "Optimize",
collapsed: false,
collapsible: false,
link: {
type: "doc",
id: "optimize/index",
},
className: "firstTitle",
items: [{ type: "autogenerated", dirName: "700-optimize" }],
},
],
accelerateSidebar: [
{
type: "category",
Expand Down

0 comments on commit a599a26

Please sign in to comment.