Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'feat/docs2.0' of https://github.com/supabase/supabase into feat/docs2.0

Jonathan Summers-Muirfe9c513e1cf9
diff --cc apps/docs/pages/reference/dart/[...slug].tsx
index 8007429daa1,b72a7b9b6f4..def732d6823
--- a/apps/docs/pages/reference/dart/[...slug].tsx
+++ b/apps/docs/pages/reference/dart/[...slug].tsx
@@@ -34,12 -37,10 +37,12 @@@ export default function DartReference(p
const router = useRouter()
const slug = router.query.slug[0]
+ const isNewDocs = process.env.NEXT_PUBLIC_NEW_DOCS === 'true'
+
useEffect(() => {
- if (document && slug !== 'start') {
+ if (isNewDocs && document && slug !== 'start') {
// re-enable this when the new yaml shape file is moved into this branch
- //document.querySelector(`#${slug}`).scrollIntoView()
+ document.querySelector(`#${slug}`).scrollIntoView()
}
})