From 4df51164a22e1d643ef998e618ad53fbb583ea48 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Thu, 8 Dec 2022 16:43:32 -0330 Subject: [PATCH] Set database page as landing page --- apps/docs/pages/guides/database.mdx | 10 +--- apps/docs/pages/new/database.mdx | 85 ----------------------------- 2 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 apps/docs/pages/new/database.mdx diff --git a/apps/docs/pages/guides/database.mdx b/apps/docs/pages/guides/database.mdx index 90a72a9bacf..7efa2ad7513 100644 --- a/apps/docs/pages/guides/database.mdx +++ b/apps/docs/pages/guides/database.mdx @@ -1,6 +1,4 @@ import Layout from '~/layouts/DefaultGuideLayout' -import NewContent from '~/pages/new/database.mdx' -import { useRouter } from 'next/router' export const meta = { id: 'database', @@ -90,12 +88,6 @@ Read about resetting your database password [here](/docs/guides/database/managin - Read more about [Postgres](https://www.postgresql.org/about/) - Sign in: [app.supabase.com](https://app.supabase.com) -export const Page = ({ children }) => { - const router = useRouter() - if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true' && !router.asPath.includes('overview')) { - return NewContent() - } - return -} +export const Page = ({ children }) => export default Page diff --git a/apps/docs/pages/new/database.mdx b/apps/docs/pages/new/database.mdx deleted file mode 100644 index 56a04f8ad28..00000000000 --- a/apps/docs/pages/new/database.mdx +++ /dev/null @@ -1,85 +0,0 @@ -import Layout from '~/layouts/DefaultLayout' -import Link from 'next/link' -import { GlassPanel } from 'ui' - -export const meta = { - title: 'Database', -} - -## Learn how to use Supabase Auth to handle authentication and authorization of your users blah blah i am test text - -### Popular Guides - -
- {topArticles.map((item) => { - return ( - - - - {item.description} - - - - )})} - -
- -export const topArticles = [ - { - title: 'Database', - header: '/docs/img/cards/sample-card-header-4.svg', - href: '/auth/auth-login', - description: 'Social Login allows the user to sign into a third party website instead of.', - span: 'col-span-6', - }, - { - title: 'Auth', - header: '/docs/img/cards/sample-card-header-4.svg', - icon: 'auth', - href: '/auth/auth-login', - description: ` -Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website. - `, - span: 'col-span-6', - }, - { - title: 'Storage', - header: '/docs/img/cards/sample-card-header-4.svg', - icon: 'storage', - href: '/auth/auth-login', - description: ` -Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website. - `, - }, - { - title: 'Realtime', - header: '/docs/img/cards/sample-card-header-4.svg', - icon: 'realtime', - href: '/auth/auth-login', - description: ` -Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website. - `, - }, - { - title: 'Edge Functions', - header: '/docs/img/cards/sample-card-header-4.svg', - icon: 'functions', - href: '/auth/auth-login', - description: ` -Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website. - `, - }, -] - -export const Page = ({ children }) => - -export default Page