diff --git a/.gitignore b/.gitignore index f77c20cc4d3..3d26802d617 100644 --- a/.gitignore +++ b/.gitignore @@ -98,4 +98,5 @@ typings/ # DynamoDB Local files .dynamodb/ -.vscode \ No newline at end of file +.vscode +.vercel diff --git a/Makefile b/Makefile index a6cdc86ac47..ee3a926f7be 100644 --- a/Makefile +++ b/Makefile @@ -34,4 +34,7 @@ github.repos.%: github.traction: cd "$(REPO_DIR)"/web && \ - npm run traction \ No newline at end of file + npm run traction + +dev: + vercel dev --listen 8080 --local-config vercel-local.json \ No newline at end of file diff --git a/vercel-local.json b/vercel-local.json new file mode 100644 index 00000000000..9afdef4d9bb --- /dev/null +++ b/vercel-local.json @@ -0,0 +1,63 @@ +{ + "rewrites": [ + { "source": "/new/:match*", "destination": "http://localhost:3000/new/:match*" }, + { "source": "/", "destination": "http://localhost:3000/new" }, + { "source": "/beta", "destination": "http://localhost:3000/new/beta" }, + { "source": "/:name.:extension", "destination": "http://localhost:3005/:name.:extension" }, + { "source": "/:match*", "destination": "http://localhost:3005/:match*/" } + ], + "redirects": [ + { + "source": "/blog/2020/07/10/surviving-hacker-news", + "destination": "/blog/2020/07/10/alpha-launch-postmortem" + }, + { + "source": "/docs/common/_CommonResponses", + "destination": "/docs" + }, + { "source": "/docs/common/_DummyData", "destination": "/docs" }, + { "source": "/docs/common/_FromFunction", "destination": "/docs" }, + { "source": "/docs/common/filters/_adj", "destination": "/docs/client/ajv" }, + { "source": "/docs/common/filters/_cd", "destination": "/docs/client/cd" }, + { "source": "/docs/common/filters/_cs", "destination": "/docs/client/cs" }, + { "source": "/docs/common/filters/_eq", "destination": "/docs/client/eq" }, + { "source": "/docs/common/filters/_filter", "destination": "/docs/client/filter" }, + { "source": "/docs/common/filters/_gt", "destination": "/docs/client/gt" }, + { "source": "/docs/common/filters/_gte", "destination": "/docs/client/gte" }, + { "source": "/docs/common/filters/_ilike", "destination": "/docs/client/ilike" }, + { "source": "/docs/common/filters/_in", "destination": "/docs/client/in" }, + { "source": "/docs/common/filters/_is", "destination": "/docs/client/is" }, + { "source": "/docs/common/filters/_like", "destination": "/docs/client/like" }, + { "source": "/docs/common/filters/_lt", "destination": "/docs/client/lt" }, + { "source": "/docs/common/filters/_lte", "destination": "/docs/client/lte" }, + { "source": "/docs/common/filters/_match", "destination": "/docs/client/match" }, + { "source": "/docs/common/filters/_neq", "destination": "/docs/client/neq" }, + { "source": "/docs/common/filters/_not", "destination": "/docs/client/not" }, + { "source": "/docs/common/filters/_nxl", "destination": "/docs/client/nxl" }, + { "source": "/docs/common/filters/_nxr", "destination": "/docs/client/nxr" }, + { "source": "/docs/common/filters/_or", "destination": "/docs/client/or" }, + { "source": "/docs/common/filters/_ova", "destination": "/docs/client/ov" }, + { "source": "/docs/common/filters/_ovr", "destination": "/docs/client/ov" }, + { "source": "/docs/common/filters/_sl", "destination": "/docs/client/sl" }, + { "source": "/docs/common/filters/_sr", "destination": "/docs/client/sr" }, + { "source": "/docs/library/authentication", "destination": "/docs/guides/auth" }, + { "source": "/docs/library/delete", "destination": "/docs/client/delete" }, + { "source": "/docs/library/get", "destination": "/docs/client/select" }, + { "source": "/docs/library/getting-started", "destination": "/docs/client/supabase-client" }, + { "source": "/docs/library/patch", "destination": "/docs/client/update" }, + { "source": "/docs/library/post", "destination": "/docs/client/insert" }, + { "source": "/docs/library/stored-procedures", "destination": "/docs/client/rpc" }, + { "source": "/docs/library/subscribe", "destination": "/docs/client/subscribe" }, + { "source": "/docs/library/user-management", "destination": "/docs/guides/auth" }, + { "source": "/docs/postgres/postgres-intro", "destination": "/docs/postgres/server/about" }, + { "source": "/docs/realtime/about", "destination": "/docs/realtime/server/about" }, + { "source": "/docs/realtime/aws", "destination": "/docs/postgres/server/aws" }, + { + "source": "/docs/realtime/digitalocean", + "destination": "/docs/postgres/server/digitalocean" + }, + { "source": "/docs/realtime/docker", "destination": "/docs/postgres/server/docker" }, + { "source": "/docs/realtime/source", "destination": "/docs/postgres/server/about" } + ], + "trailingSlash": false +} diff --git a/www/components/Button.tsx b/www/components/Button.tsx index 21f283d29e1..82723faa3a0 100644 --- a/www/components/Button.tsx +++ b/www/components/Button.tsx @@ -43,7 +43,7 @@ const Button = (props: Props) => { ) - return url ? {renderButton()} : renderButton() + return url ? {renderButton()} : renderButton() } export default Button diff --git a/www/components/Nav/Company.tsx b/www/components/Nav/Company.tsx index e4dadc39f5c..b633808cc47 100644 --- a/www/components/Nav/Company.tsx +++ b/www/components/Nav/Company.tsx @@ -81,7 +81,7 @@ const Company = () => {
View all posts diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx index 31c68862be6..66fb0664f30 100644 --- a/www/components/Nav/index.tsx +++ b/www/components/Nav/index.tsx @@ -244,7 +244,7 @@ const Nav = (props: Props) => { Beta { we've been fortunate to work with thousands of early adopters on improving both our Open Source, and Hosted offerings. Companies like{' '} @@ -152,7 +152,7 @@ const Introduction = () => { ,{' '} @@ -160,7 +160,7 @@ const Introduction = () => { , and{' '} @@ -549,7 +549,7 @@ const NewFeaturesAndIntegrations = () => { If you're new to Supabase, here's a few of the things you get when you choose us as your backend. We provide{' '} @@ -557,7 +557,7 @@ const NewFeaturesAndIntegrations = () => { {' '} (and{' '} @@ -579,7 +579,7 @@ const NewFeaturesAndIntegrations = () => {

You can{' '} @@ -598,7 +598,7 @@ const NewFeaturesAndIntegrations = () => { You can use your database immediately, without an ORM or an API backend. We support GraphQL-like{' '} @@ -606,7 +606,7 @@ const NewFeaturesAndIntegrations = () => { {' '} in a single request, and you can even{' '} @@ -680,8 +680,8 @@ const BetaPricing = () => (

- Whilst we're not yet ready to publish a standardized pricing model, we are committing to the - following initiatives: + Whilst we're not yet ready to publish a standardized pricing model, we are committing to + the following initiatives: