The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
issues viewing pages in old layout
Jonathan Summers-Muiraa78dbd1814b
diff --git a/apps/docs/pages/reference/dart/[...slug].tsx b/apps/docs/pages/reference/dart/[...slug].tsxindex 94a75b32e35..8007429daa1 100644--- a/apps/docs/pages/reference/dart/[...slug].tsx+++ b/apps/docs/pages/reference/dart/[...slug].tsx@@ -34,8 +34,10 @@ export default function DartReference(props) {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()}@@ -44,7 +46,7 @@ export default function DartReference(props) {/** handle old ref pages*/- if (process.env.NEXT_PUBLIC_NEW_DOCS === 'false') {+ if (!isNewDocs) {return (// @ts-ignore<OldLayout meta={props.meta} toc={props.toc}>diff --git a/apps/docs/pages/reference/javascript/[...slug].tsx b/apps/docs/pages/reference/javascript/[...slug].tsxindex 8c7314fb580..72377111290 100644--- a/apps/docs/pages/reference/javascript/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/[...slug].tsx@@ -35,10 +35,12 @@ export default function JSReference(props) {const slug = router.query.slug[0]+ const isNewDocs = process.env.NEXT_PUBLIC_NEW_DOCS === 'true'+// When user lands on a url like http://supabase.com/docs/reference/javascript/sign-up// find the #sign-up element and scroll to thatuseEffect(() => {- if (document && slug !== 'start') {+ if (isNewDocs && document && slug !== 'start') {document.querySelector(`#${slug}`).scrollIntoView()}})@@ -46,7 +48,7 @@ export default function JSReference(props) {/** handle old ref pages*/- if (process.env.NEXT_PUBLIC_NEW_DOCS === 'false') {+ if (!isNewDocs) {return (// @ts-ignore<OldLayout meta={props.meta} toc={props.toc}>diff --git a/apps/docs/pages/reference/javascript/v1/[...slug].tsx b/apps/docs/pages/reference/javascript/v1/[...slug].tsxindex 91430402297..eb327c53ddc 100644--- a/apps/docs/pages/reference/javascript/v1/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/v1/[...slug].tsx@@ -41,6 +41,8 @@ export default function Ref(props) {const [offsetY, setOffsetY] = useState(0)const [sections, setSections] = useState([])+ const isNewDocs = process.env.NEXT_PUBLIC_NEW_DOCS === 'true'+// useEffect(() => {// window.scrollTo(0, 0)// setOffsetY(0)@@ -132,7 +134,7 @@ export default function Ref(props) {/** handle old ref pages*/- if (process.env.NEXT_PUBLIC_NEW_DOCS === 'false') {+ if (isNewDocs) {return (// @ts-ignore<OldLayout meta={props.meta} toc={props.toc}>diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex 2a839313706..3fbc6d40e23 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -72,6 +72,24 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/handbook/contributing</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/handbook/introduction</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/handbook/supasquad</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/api</loc><changefreq>weekly</changefreq>@@ -223,73 +241,73 @@</url><url>- <loc>https://supabase.com/docs/handbook/contributing</loc>+ <loc>https://supabase.com/docs/new/1</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/handbook/introduction</loc>+ <loc>https://supabase.com/docs/new/auth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/handbook/supasquad</loc>+ <loc>https://supabase.com/docs/new/danny</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/1</loc>+ <loc>https://supabase.com/docs/new/database</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/auth</loc>+ <loc>https://supabase.com/docs/new/index</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/danny</loc>+ <loc>https://supabase.com/docs/tutorials/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/database</loc>+ <loc>https://supabase.com/docs/reference/index</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/index</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/index</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/tutorials/nextjs</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/local-development</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/managing-environments</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -301,259 +319,271 @@</url><url>- <loc>https://supabase.com/docs/guides/auth/auth-apple</loc>+ <loc>https://supabase.com/docs/guides/database/arrays</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-azure</loc>+ <loc>https://supabase.com/docs/guides/database/connecting-to-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-bitbucket</loc>+ <loc>https://supabase.com/docs/guides/database/extensions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc>+ <loc>https://supabase.com/docs/guides/database/full-text-search</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-discord</loc>+ <loc>https://supabase.com/docs/guides/database/functions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-email</loc>+ <loc>https://supabase.com/docs/guides/database/json</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-facebook</loc>+ <loc>https://supabase.com/docs/guides/database/managing-passwords</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-github</loc>+ <loc>https://supabase.com/docs/guides/database/managing-timezones</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-gitlab</loc>+ <loc>https://supabase.com/docs/guides/database/replication</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-google</loc>+ <loc>https://supabase.com/docs/guides/database/sql-to-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc>+ <loc>https://supabase.com/docs/guides/database/tables</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-keycloak</loc>+ <loc>https://supabase.com/docs/guides/database/testing</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-linkedin</loc>+ <loc>https://supabase.com/docs/guides/database/timeouts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc>+ <loc>https://supabase.com/docs/guides/database/webhooks</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-messagebird</loc>+ <loc>https://supabase.com/docs/guides/cli/local-development</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc>+ <loc>https://supabase.com/docs/guides/cli/managing-environments</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-notion</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-apple</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-slack</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-azure</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-spotify</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-bitbucket</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-twilio</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-twitch</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-discord</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-twitter</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-email</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-vonage</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-facebook</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-workos</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-github</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-zoom</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-gitlab</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-google</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/overview</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/row-level-security</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-keycloak</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-linkedin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/arrays</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/connecting-to-postgres</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-messagebird</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/full-text-search</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-notion</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/functions</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-slack</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/json</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-spotify</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/managing-passwords</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-twilio</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/managing-timezones</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-twitch</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/replication</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-twitter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/sql-to-api</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-vonage</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/tables</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-workos</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/testing</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-zoom</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/timeouts</loc>+ <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/webhooks</loc>+ <loc>https://supabase.com/docs/guides/auth/overview</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/guides/auth/row-level-security</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -840,6 +870,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/new/auth/auth-login</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/tutorials/with-angular</loc><changefreq>weekly</changefreq>@@ -925,55 +961,43 @@</url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>+ <loc>https://supabase.com/docs/new/tutorials/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/http</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/auth/auth-login</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/tutorials/nextjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/index</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1009,37 +1033,13 @@</url><url>- <loc>https://supabase.com/docs/guides/database/extensions/http</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/index</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xmlindex b94e96a79ce..03e3998e8df 100644--- a/apps/www/public/sitemap_www.xml+++ b/apps/www/public/sitemap_www.xml@@ -48,12 +48,6 @@<changefreq>0.5</changefreq></url>- <url>- <loc>https://supabase.com/blog/</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-<url><loc>https://supabase.com/auth</loc><changefreq>weekly</changefreq>@@ -108,6 +102,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/blog/</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/realtime</loc><changefreq>weekly</changefreq>