mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix(docs): rename database linter (#23274)
This commit is contained in:
1 parent
6bd5ef4298
commit
12c5eb44b2
3 files changed
+13
-8
No files matched your search
@@ -802,8 +802,8 @@ export const database: NavMenuConstant = {
|
||||
url: '/guides/database/query-optimization',
|
||||
},
|
||||
{
|
||||
name: 'Database linter',
|
||||
url: '/guides/database/database-linter',
|
||||
name: 'Database Advisors',
|
||||
url: '/guides/database/database-advisors',
|
||||
},
|
||||
{
|
||||
name: 'Debugging and monitoring',
|
||||
|
||||
+6
-6
@@ -26,30 +26,30 @@ export const branch = 'main'
|
||||
export const docsDir = 'docs'
|
||||
|
||||
const meta = {
|
||||
title: 'Database Linter',
|
||||
title: 'Performance and Security Advisors',
|
||||
subtitle: 'Check your database for performance and security issues',
|
||||
}
|
||||
|
||||
const editLink = 'https://github.com/supabase/splinter/tree/main/docs'
|
||||
|
||||
const markdownIntro = `
|
||||
You can use the Database Linter to check your database for issues such as missing indexes and improperly set-up RLS policies.
|
||||
You can use the Database Performance and Security Advisors to check your database for issues such as missing indexes and improperly set-up RLS policies.
|
||||
|
||||
## Using the linter
|
||||
## Using the Advisors
|
||||
|
||||
In the dashboard, navigate to [Database Linter](https://supabase.com/dashboard/project/_/database/linter) under Database. The linter runs automatically. You can also manually rerun it after you've resolved issues.
|
||||
In the dashboard, navigate to [Security Advisor](https://supabase.com/dashboard/project/_/database/security-advisor) and [Performance Advisor](https://supabase.com/dashboard/project/_/database/performance-advisor) under Database. The advisors run automatically. You can also manually rerun them after you've resolved issues.
|
||||
`.trim()
|
||||
|
||||
const getBasename = (path: string) => path.split('/').at(-1).replace(/\.md$/, '')
|
||||
|
||||
export default function ProjectLinterDocs({
|
||||
export default function DatabaseAdvisorDocs({
|
||||
intro,
|
||||
lints,
|
||||
}: InferGetStaticPropsType<typeof getStaticProps>) {
|
||||
return (
|
||||
<Layout menuId={MenuId.Database} meta={meta} editLink={editLink}>
|
||||
<MDXRemote {...intro} components={components} />
|
||||
<Heading tag="h2">Available lints</Heading>
|
||||
<Heading tag="h2">Available checks</Heading>
|
||||
<Tabs listClassNames="flex flex-wrap gap-2 [&>button]:!m-0" queryGroup="lint">
|
||||
{lints.map((lint) => (
|
||||
<Tabs.Panel
|
||||
@@ -2438,4 +2438,9 @@ module.exports = [
|
||||
source: '/docs/guides/database/sql-to-api',
|
||||
destination: '/docs/guides/api/sql-to-api',
|
||||
},
|
||||
{
|
||||
permanent: true,
|
||||
source: '/docs/guides/database/database-linter',
|
||||
destination: '/docs/guides/database/database-advisors',
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user