The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
revert some pages back
Jonathan Summers-Muirfcc541628d14
diff --git a/apps/temp-docs/pages/404.mdx b/apps/temp-docs/docs/404.mdxsimilarity index 100%rename from apps/temp-docs/pages/404.mdxrename to apps/temp-docs/docs/404.mdxdiff --git a/apps/temp-docs/pages/architecture.mdx b/apps/temp-docs/docs/architecture.mdxsimilarity index 83%rename from apps/temp-docs/pages/architecture.mdxrename to apps/temp-docs/docs/architecture.mdxindex 1fd097d8d61..bb6b76121ec 100644--- a/apps/temp-docs/pages/architecture.mdx+++ b/apps/temp-docs/docs/architecture.mdx@@ -1,9 +1,7 @@-import Layout from '~/layouts/Guide'--export const meta = {- title: 'Architecture',- description: 'Supabase Architecture',-}+---+title: 'Architecture',+description: 'Supabase Architecture',+---# Architecture@@ -16,5 +14,3 @@ Supabase is not a 1-to-1 mapping of Firebase. While we are building many of theOur technological choices are quite different to Firebase. Everything we use is open source. Wherever possible, we use and support existing tools in the ecosystem, rather than developing from scratch.Most notably, we use Postgres rather than a NoSQL store. This was a deliberate choice. We believe that no other database on the market offers the scalability and functionality required to legitimately compete with Firebase.--export default (context) => <Layout context={context} />diff --git a/apps/temp-docs/pages/faqs.mdx b/apps/temp-docs/docs/faqs.mdxsimilarity index 92%rename from apps/temp-docs/pages/faqs.mdxrename to apps/temp-docs/docs/faqs.mdxindex fdbee082d5b..92cfe6b2b27 100644--- a/apps/temp-docs/pages/faqs.mdx+++ b/apps/temp-docs/docs/faqs.mdx@@ -1,9 +1,7 @@-import Layout from '~/layouts/Guide'--export const meta = {- title: 'FAQs',- description: 'Supabase frequently asked questions',-}+---+title: 'FAQs',+description: 'Supabase frequently asked questions',+---# FAQs@@ -32,5 +30,3 @@ At the moment, we only support PostgreSQL. It's unlikely we'll ever move away fr### Do you have a library for `[some other language]`?We currently have a JavaScript library. You can [vote on a new client library](https://github.com/supabase/supabase/issues/5) for your favorite language.--export default (context) => <Layout context={context} />diff --git a/apps/temp-docs/pages/going-into-prod.mdx b/apps/temp-docs/docs/going-into-prod.mdxsimilarity index 93%rename from apps/temp-docs/pages/going-into-prod.mdxrename to apps/temp-docs/docs/going-into-prod.mdxindex 410767ff74e..3d916b02105 100644--- a/apps/temp-docs/pages/going-into-prod.mdx+++ b/apps/temp-docs/docs/going-into-prod.mdx@@ -1,10 +1,8 @@-import Layout from '~/layouts/Guide'--export const meta = {- id: 'going-into-prod',- title: 'Going into Prod Checklist',- description: 'Things to do before making your app publicly available',-}+---+id: 'going-into-prod',+title: 'Going into Prod Checklist',+description: 'Things to do before making your app publicly available',+---# Going into Prod Checklist@@ -53,5 +51,3 @@ After developing your project, and deciding it's time to Go Live With Real Users- upgrading to the Supabase Pro Tier will give you access to email support on [email protected]This checklist is always growing so be sure to check back frequently, and also feel free to suggest additions and amendments by making a PR on [Github](https://github.com/supabase/supabase).--export default (context) => <Layout context={context} />diff --git a/apps/temp-docs/pages/guides.mdx b/apps/temp-docs/docs/guides.mdxsimilarity index 100%rename from apps/temp-docs/pages/guides.mdxrename to apps/temp-docs/docs/guides.mdxdiff --git a/apps/temp-docs/pages/index.mdx b/apps/temp-docs/docs/introduction.mdxsimilarity index 88%rename from apps/temp-docs/pages/index.mdxrename to apps/temp-docs/docs/introduction.mdxindex e1fe284ddac..a0fef3002a1 100644--- a/apps/temp-docs/pages/index.mdx+++ b/apps/temp-docs/docs/introduction.mdx@@ -1,9 +1,7 @@-import Layout from '~/layouts/Guide'--export const meta = {- title: 'Introduction',- description: 'Introduction to Supabase',-}+---+title: 'Introduction'+description: 'Introduction to Supabase'+---# Introduction@@ -45,5 +43,3 @@ The documentation is divided into 3 sections.<LinkCard title="Overview" description="A summary of the tools and how to get started" /><LinkCard title="Overview" description="A summary of the tools and how to get started" /></LinkCardsWrapper>--export default (context) => <Layout meta={meta} children={context.children} context={context} />diff --git a/apps/temp-docs/package.json b/apps/temp-docs/package.jsonindex 33890db73b0..74dac758ea8 100644--- a/apps/temp-docs/package.json+++ b/apps/temp-docs/package.json@@ -6,7 +6,27 @@"dev": "next dev --port 3001","build": "next build","start": "next start",- "lint": "next lint"+ "lint": "next lint",+ "generate:all": "npm-run-all --parallel gen:api gen:cli gen:gotrue gen:storage gen:supabase-dart:v0 gen:supabase-dart:v1 gen:supabase-js:v1 gen:supabase-js:v2",+ "gen:api": "npm-run-all gen:api:usage",+ "gen:api:usage": "ts-node ./generator/index.ts gen --type api --url https://api.supabase.com --input ../../spec/transforms/api_v0_openapi_deparsed.json --output ./_api/usage.mdx",+ "gen:cli": "npm-run-all gen:cli:commands gen:cli:config",+ "gen:cli:commands": "ts-node ./generator/index.ts gen --type cli --input ../../spec/cli_v1_commands.yaml --output ./_cli/generated/usage.mdx ",+ "gen:cli:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/cli_v1_config.yaml --output ./_cli/generated/config.mdx",+ "gen:gotrue": "npm-run-all gen:gotrue:config gen:gotrue:usage",+ "gen:gotrue:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/gotrue_v1_config.yaml --output ./_gotrue/config.mdx",+ "gen:gotrue:usage": "ts-node ./generator/index.ts gen --type api --input ../../spec/transforms/auth_v1_openapi_deparsed.json --output ./_gotrue/usage.mdx",+ "gen:storage": "npm-run-all gen:storage:api gen:storage:config",+ "gen:storage:api": "ts-node ./generator/index.ts gen --type api --input ../../spec/transforms/storage_v0_openapi_deparsed.json --output ./_storage/generated/usage.mdx",+ "gen:storage:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/storage_v0_config.yaml --output ./_storage/generated/config.mdx",+ "gen:supabase-dart:v0": "npm-run-all gen:supabase-dart:v0:ref",+ "gen:supabase-dart:v0:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_dart_v0.yml --output ./_supabase_dart_versioned_docs/version-v0/generated",+ "gen:supabase-dart:v1": "npm-run-all gen:supabase-dart:v1:ref",+ "gen:supabase-dart:v1:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_dart_v1.yml --output ./_supabase_dart/generated",+ "gen:supabase-js:v1": "npm-run-all gen:supabase-js:v1:ref",+ "gen:supabase-js:v1:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_js_v1.yml --output ./_supabase_js_versioned_docs/version-v1/generated",+ "gen:supabase-js:v2": "npm-run-all gen:supabase-js:v2:ref",+ "gen:supabase-js:v2:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_js_v2.yml --output ./_supabase_js/generated"},"dependencies": {"config": "*",diff --git a/apps/temp-docs/pages/index.tsx b/apps/temp-docs/pages/index.tsxnew file mode 100644index 00000000000..0b4909f831c--- /dev/null+++ b/apps/temp-docs/pages/index.tsx@@ -0,0 +1,32 @@+import { MDXProvider } from '@mdx-js/react'+import { MDXRemote } from 'next-mdx-remote'+import { serialize } from 'next-mdx-remote/serialize'+import components from '~/components'+import menuItems from '~/components/nav/menu-items.json'+import Layout from '~/layouts/DocsLayout'+import { getDocsBySlug } from '../lib/docs'+export default function Home({+ meta,+ content,+}: {+ meta: { title: string; description: string }+ content: any+}) {+ return (+ <Layout meta={meta} menuItems={menuItems['Docs']} currentPage="Docs">+ <MDXProvider components={components}>+ <MDXRemote {...content} />+ </MDXProvider>+ </Layout>+ )+}+export async function getStaticProps() {+ const doc = getDocsBySlug('docs/introduction')+ const content = await serialize(doc.content || '')+ return {+ props: {+ ...doc,+ content,+ },+ }+}