The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Including the Prisma theme file in DocsLayout.js (even with a CSS loader) seems to break the documentation links, but only in production. Steps to replicate:
Paul Copplestone573cb34507e7
diff --git a/packages/web/components/layouts/DocsLayout.js b/packages/web/components/layouts/DocsLayout.jsindex a6a91f41547..453c3808fa4 100644--- a/packages/web/components/layouts/DocsLayout.js+++ b/packages/web/components/layouts/DocsLayout.js@@ -1,5 +1,4 @@import '~/styles/style.scss'-import '~/styles/prism-tomorrow.scss'import Navbar from '../Navbar'import NavbarDocs from '../NavbarDocs'import Footer from '../Footer'diff --git a/packages/web/next.config.js b/packages/web/next.config.jsindex 3256e9dd723..d8303c8192b 100644--- a/packages/web/next.config.js+++ b/packages/web/next.config.js@@ -5,9 +5,9 @@ const nextConfig = {experimental: { publicDirectory: true },}-// // CSS-// const withCSS = require('@zeit/next-css')-// const withCssConfig = {}+// CSS+const withCSS = require('@zeit/next-css')+const withCssConfig = {}// SASSconst withSass = require('@zeit/next-sass')@@ -29,7 +29,7 @@ const withMdxConfig = {}module.exports = withPlugins([- // [withCSS, withCssConfig],+ [withCSS, withCssConfig],[withSass, withSassConfig],[withMDX, withMdxConfig],],diff --git a/packages/web/pages/_document.js b/packages/web/pages/_document.jsindex b1ed9739670..95911a1317f 100644--- a/packages/web/pages/_document.js+++ b/packages/web/pages/_document.js@@ -7,7 +7,7 @@ export default class MyDocument extends Document {<meta charSet="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="shortcut icon" type="image/png" href="/favicon.png" />- <link rel="sty" type="image/png" href="/favicon.png" />+ <link rel="stylesheet" type="text/css" href="/css/prism-tomorrow.css" /><title>Supabase</title></head><Head />diff --git a/packages/web/styles/prism-tomorrow.scss b/packages/web/public/css/prism-tomorrow.csssimilarity index 79%rename from packages/web/styles/prism-tomorrow.scssrename to packages/web/public/css/prism-tomorrow.cssindex a0eeff0a381..0f5ab353225 100644--- a/packages/web/styles/prism-tomorrow.scss+++ b/packages/web/public/css/prism-tomorrow.css@@ -1,3 +1,15 @@+/*+Note that including this file in DocsLayout.js (even with a CSS loader)+seems to break the documentation links, but only in production.+Steps to replicate:++- Uncomment the CSS loader from next.config.js+- Add `import '~/styles/prism-tomorrow.css'` to DocsLayout.js+- Run in dev: Go to homepage -> click on a links to the docs -> success+- Deploy to Prod+- Run in prod: Go to homepage -> click on a links to the docs -> location doesn't change+*/+/*** prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML* Based on https://github.com/chriskempson/tomorrow-theme