Skip to content

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

feat: add nextjs marketing page

thorwebdev09ad2d8dc159
diff --git a/apps/www/pages/database/Database.tsx b/apps/www/pages/database/Database.tsx
index 91880ee9280..6e0470ddeac 100644
--- a/apps/www/pages/database/Database.tsx
+++ b/apps/www/pages/database/Database.tsx
@@ -53,7 +53,7 @@ function Database() {
openGraph={{
title: meta_title,
description: meta_description,
- url: `https://supabase.com/auth`,
+ url: `https://supabase.com/database`,
images: [
{
url: `https://supabase.com${basePath}/images/product/database/database-og.jpg`,
diff --git a/apps/www/pages/nextjs/Nextjs.css b/apps/www/pages/nextjs/Nextjs.css
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/apps/www/pages/nextjs/Nextjs.tsx b/apps/www/pages/nextjs/Nextjs.tsx
new file mode 100644
index 00000000000..bd46c237240
--- /dev/null
+++ b/apps/www/pages/nextjs/Nextjs.tsx
@@ -0,0 +1,40 @@
+import { NextSeo } from 'next-seo'
+import { useRouter } from 'next/router'
+import { useEffect } from 'react'
+
+// NOTE: this is a placeholder for our future Next.js marketing page. For now it redirects to our Next.js guide.
+
+function Nextjs() {
+ // base path for images
+ const router = useRouter()
+ const { basePath } = router
+
+ useEffect(() => {
+ router.push('/docs/guides/with-nextjs')
+ }, [])
+
+ const meta_title = 'Next.js Database with Auth, Realtime, Fiel Storage, and more.'
+ const meta_description =
+ 'Supabase is the fastest way to build performant Next.js apps with Authentication & User Management, Realtime, File Storage on top of PostgreSQL Databases.'
+
+ return (
+ <>
+ <NextSeo
+ title={meta_title}
+ description={meta_description}
+ openGraph={{
+ title: meta_title,
+ description: meta_description,
+ url: `https://supabase.com/nextjs`,
+ images: [
+ {
+ url: `https://supabase.com${basePath}/images/product/database/database-og.jpg`,
+ },
+ ],
+ }}
+ />
+ </>
+ )
+}
+
+export default Nextjs
diff --git a/apps/www/pages/nextjs/index.tsx b/apps/www/pages/nextjs/index.tsx
new file mode 100644
index 00000000000..1f3c1850d7d
--- /dev/null
+++ b/apps/www/pages/nextjs/index.tsx
@@ -0,0 +1,3 @@
+import Nextjs from './Nextjs'
+
+export default Nextjs