The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Fix AI prompts page title and menu item title. (#33341)
Tylerb3cbbc7353b3
diff --git a/apps/docs/app/guides/getting-started/ai-prompts/[slug]/AiPrompts.utils.ts b/apps/docs/app/guides/getting-started/ai-prompts/[slug]/AiPrompts.utils.tsindex 935bd6d388e..0c8f83d7f0c 100644--- a/apps/docs/app/guides/getting-started/ai-prompts/[slug]/AiPrompts.utils.ts+++ b/apps/docs/app/guides/getting-started/ai-prompts/[slug]/AiPrompts.utils.ts@@ -1,3 +1,4 @@+import matter from 'gray-matter'import type { Code, Heading, Root } from 'mdast'import { fromMarkdown } from 'mdast-util-from-markdown'import { toMarkdown } from 'mdast-util-to-markdown'@@ -11,7 +12,8 @@ import { EXAMPLES_DIRECTORY } from '~/lib/docs'const PROMPTS_DIRECTORY = join(EXAMPLES_DIRECTORY, 'prompts')function parseMarkdown(markdown: string) {- const mdast = fromMarkdown(markdown)+ const { content: withoutFrontmatter } = matter(markdown)+ const mdast = fromMarkdown(withoutFrontmatter)let heading = ''visit(mdast, 'heading', (node: Heading) => {diff --git a/examples/prompts/code-format-sql.md b/examples/prompts/code-format-sql.mdindex 4302b639cfb..4bd5314a541 100644--- a/examples/prompts/code-format-sql.md+++ b/examples/prompts/code-format-sql.md@@ -4,6 +4,8 @@ description: Guidelines for writing Postgres SQLglobs: "**/*.sql"---+# Postgres SQL Style Guide+## General- Use lowercase for SQL reserved words to maintain consistency and readability.diff --git a/examples/prompts/database-create-migration.md b/examples/prompts/database-create-migration.mdindex 6e7513d1ce2..3f975638d6c 100644--- a/examples/prompts/database-create-migration.md+++ b/examples/prompts/database-create-migration.md@@ -4,6 +4,8 @@ description: Guidelines for writing Postgres migrationsglobs: "supabase/migrations/**/*.sql"---+# Database: Create migration+You are a Postgres Expert who loves creating secure database schemas.This project uses the migrations provided by the Supabase CLI.diff --git a/examples/prompts/database-functions.md b/examples/prompts/database-functions.mdindex 4117836cb76..81df2d66039 100644--- a/examples/prompts/database-functions.md+++ b/examples/prompts/database-functions.md@@ -4,6 +4,8 @@ description: Guidelines for writing Supabase database functionsglobs: "**/*.sql"---+# Database: Create functions+You're a Supabase Postgres expert in writing database functions. Generate **high-quality PostgreSQL functions** that adhere to the following best practices:## General Guidelinesdiff --git a/examples/prompts/database-rls-policies.md b/examples/prompts/database-rls-policies.mdindex 65d0f6ddb37..76818ff1b08 100644--- a/examples/prompts/database-rls-policies.md+++ b/examples/prompts/database-rls-policies.md@@ -4,6 +4,8 @@ description: Guidelines for writing Postgres Row Level Security policiesglobs: "**/*.sql"---+# Database: Create RLS policies+You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate a policy with the constraints given by the user. You should first retrieve schema information to write policies for, usually the 'public' schema.The output should use the following instructions:diff --git a/examples/prompts/edge-functions.md b/examples/prompts/edge-functions.mdindex 669824f1614..49cec5f6614 100644--- a/examples/prompts/edge-functions.md+++ b/examples/prompts/edge-functions.md@@ -4,6 +4,8 @@ description: Coding rules for Supabase Edge Functionsglobs: "supabase/functions/**/*.ts"---+# Writing Supabase Edge Functions+You're an expert in writing TypeScript and Deno JavaScript runtime. Generate **high-quality Supabase Edge Functions** that adhere to the following best practices:## Guidelinesdiff --git a/examples/prompts/nextjs-supabase-auth.md b/examples/prompts/nextjs-supabase-auth.mdindex f9f3c2379e8..74942542cf2 100644--- a/examples/prompts/nextjs-supabase-auth.md+++ b/examples/prompts/nextjs-supabase-auth.md@@ -4,6 +4,8 @@ description: Guidelines for writing Next.js apps with Supabase Authglobs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"---+# Bootstrap Next.js app with Supabase Auth+Create a Next.js app that uses App Router with Supabase Auth.Follow Supabase's guidelines for using the `@supabase/ssr` package and Server-Side Auth. Specifically, there should be: