diff --git a/packages/web/components/Footer.js b/packages/web/components/Footer.js index b8eeeb6939..e87d28086e 100644 --- a/packages/web/components/Footer.js +++ b/packages/web/components/Footer.js @@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react' import Link from 'next/link' import SignUpForm from '~/components/SignUpForm' import WidthWrapper from '~/components/WidthWrapper' +import {version} from '~/package.json' export default function Footer({ isFullwidth }) { return ( @@ -34,7 +35,7 @@ export default function Footer({ isFullwidth }) {
- © Supabase + © Supabase. v{version}
diff --git a/packages/web/components/WidthWrapper.js b/packages/web/components/WidthWrapper.js index 65ba13d027..eb40e6e6ed 100644 --- a/packages/web/components/WidthWrapper.js +++ b/packages/web/components/WidthWrapper.js @@ -1,4 +1,4 @@ export default function WidthWrapper({ isFullwidth, children }) { - if (!isFullwidth) return
{children}
+ if (!isFullwidth) return
{children}
else return <>{children} } diff --git a/packages/web/components/layouts/DocsLayout.js b/packages/web/components/layouts/DocsLayout.js index 10f68ba8e4..a6ed85c29e 100644 --- a/packages/web/components/layouts/DocsLayout.js +++ b/packages/web/components/layouts/DocsLayout.js @@ -8,21 +8,18 @@ export default function DocsLayout(props) { return ( <> - - Supabase | Docs -
{props.children}
diff --git a/packages/web/components/layouts/MainLayout.js b/packages/web/components/layouts/MainLayout.js index 98b3834505..776ca8e729 100644 --- a/packages/web/components/layouts/MainLayout.js +++ b/packages/web/components/layouts/MainLayout.js @@ -7,10 +7,7 @@ export default function MainLayout(props) { return ( <> - - Supabase -
diff --git a/packages/web/content/docs/admin-api/getting-started.mdx b/packages/web/content/docs/admin-api/getting-started.mdx index dee50691c6..aa3537f267 100644 --- a/packages/web/content/docs/admin-api/getting-started.mdx +++ b/packages/web/content/docs/admin-api/getting-started.mdx @@ -1,14 +1,16 @@ export const metadata = { title: 'Admin API', - description: 'SQL is awesome, but sometimes you just want to use a technology you\'re familiar with.' + description: 'SQL is awesome, but sometimes you just want to use a technology you\'re familiar with. Why not REST?' } -lorem ipsum ### Somthing else +lorem ipsum +lorem ipsum +lorem ipsum lorem ipsum \ No newline at end of file diff --git a/packages/web/next.config.js b/packages/web/next.config.js index d447c45230..ac95ba4538 100644 --- a/packages/web/next.config.js +++ b/packages/web/next.config.js @@ -1,21 +1,22 @@ +const withPlugins = require('next-compose-plugins') + +// Next Config +const nextConfig = { + experimental: { publicDirectory: true } +} + +// SASS const withSass = require('@zeit/next-sass') +const withSassConfig = { + sassLoaderOptions: { + includePaths: ['./', 'absolute/path/b'], + }, +} + +// Markdown const withMDX = require('@zeit/next-mdx')({ - // parse mdx files extension: /\.mdx?$/, - // options: { - // mdPlugins: [images, emoji] - // } }) -module.exports = withSass( - withMDX({ - experimental: { publicDirectory: true }, - exportPathMap: function() { - return { - '/': { page: '/' }, - // '/blog': { page: '/blog' }, - // '/docs/admin-api/getting-started': { page: '/docs/[product]/[slug]', query: { product: 'admin-api', slug: 'getting-started' } }, - // '/docs/packaged/getting-started': { page: '/docs/packaged/getting-started' }, - } - }, - }) -) +const withMdxConfig = { } + +module.exports = withPlugins([[withSass, withSassConfig], [withMDX, withMdxConfig]], nextConfig) diff --git a/packages/web/now.json b/packages/web/now.json new file mode 100644 index 0000000000..10165776d8 --- /dev/null +++ b/packages/web/now.json @@ -0,0 +1,5 @@ +{ + "name": "supabase", + "version": 2, + "alias": ["supabase.io"] +} \ No newline at end of file diff --git a/packages/web/package.json b/packages/web/package.json index 6d6e07e8ac..348c53020f 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -16,6 +16,7 @@ "@zeit/next-sass": "^1.0.0", "bulma": "^0.7.5", "next": "^9.0.5-canary.2", + "next-compose-plugins": "^2.2.0", "node-sass": "^4.7.2", "react": "^16.7.0", "react-dom": "^16.7.0" diff --git a/packages/web/pages/_document.js b/packages/web/pages/_document.js index 027e873ebf..3cbd10fafc 100644 --- a/packages/web/pages/_document.js +++ b/packages/web/pages/_document.js @@ -3,6 +3,12 @@ export default class MyDocument extends Document { render() { return ( + + + + + Supabase +
diff --git a/yarn.lock b/yarn.lock index 49026318b9..a45da0ba69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10227,6 +10227,11 @@ neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== +next-compose-plugins@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/next-compose-plugins/-/next-compose-plugins-2.2.0.tgz#95cd8eb40ab0652070d76572fb648354191628b0" + integrity sha512-ChUlpT9tWfJ7YxqGw/WQ2T1gf8EeX93n1XqeQw0lkvGa7seszahvF4eOZUJoq7Hetsbzg4UHVnPoCXfXTyQR3g== + next-tick@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"