Skip to content

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

chore: revert "add npm and yarn tabs"

Isaiah Hamilton21d6c8fd3b10
diff --git a/web/docs/guides/with-angular.mdx b/web/docs/guides/with-angular.mdx
index c8fd74e257d..85813443df4 100644
--- a/web/docs/guides/with-angular.mdx
+++ b/web/docs/guides/with-angular.mdx
@@ -167,28 +167,10 @@ cd supabase-angular
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in the `environment.ts` file.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
These variables will be exposed on the browser, and that's completely fine since we have [Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.
@@ -475,28 +457,10 @@ export class AppComponent implements OnInit {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm run start
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn start
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:4200](http://localhost:4200) and you should see the completed app.
diff --git a/web/docs/guides/with-expo.mdx b/web/docs/guides/with-expo.mdx
index 97131643fd0..c21df8f75e0 100644
--- a/web/docs/guides/with-expo.mdx
+++ b/web/docs/guides/with-expo.mdx
@@ -153,28 +153,14 @@ cd supabaseReactNative
Then let's install the additional dependencies: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
-```bash
-npm install @supabase/supabase-js react-native-elements react-native-safe-area-context @react-native-async-storage/async-storage react-native-url-polyfill
-```
-
-</TabItem>
-<TabItem value="YARN">
-
```bash
-yarn add @supabase/supabase-js react-native-elements react-native-safe-area-context @react-native-async-storage/async-storage react-native-url-polyfill
+yarn add @supabase/supabase-js
+yarn add react-native-elements
+yarn add react-native-safe-area-context
+yarn add @react-native-async-storage/async-storage
+yarn add react-native-url-polyfill
```
-</TabItem>
-</Tabs>
-
Now let's create a helper file to initialize the Supabase client.
We need the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
These variables will be exposed on the browser, and that's completely fine since we have
@@ -453,28 +439,10 @@ export default function App() {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
-```bash
-npm run start
-```
-
-</TabItem>
-<TabItem value="YARN">
-
```bash
yarn start
```
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
## Bonus: Profile photos
diff --git a/web/docs/guides/with-ionic-angular.mdx b/web/docs/guides/with-ionic-angular.mdx
index dde8870916f..0db3b062917 100644
--- a/web/docs/guides/with-ionic-angular.mdx
+++ b/web/docs/guides/with-ionic-angular.mdx
@@ -160,56 +160,18 @@ Let's start building the Angular app from scratch.
We can use the [Ionic CLI](https://ionicframework.com/docs/cli) to initialize
an app called `supabase-ionic-angular`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install -g @ionic/cli
ionic start supabase-ionic-angular blank --type angular
cd supabase-ionic-angular
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add -g @ionic/cli
-ionic start supabase-ionic-angular blank --type angular
-cd supabase-ionic-angular
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in the `environment.ts` file.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
These variables will be exposed on the browser, and that's completely fine since we have [Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.
@@ -573,28 +535,10 @@ Let's create an avatar for the user so that they can upload a profile photo.
First install two packages in order to interact with the user's camera.
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @ionic/pwa-elements @capacitor/camera
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @ionic/pwa-elements @capacitor/camera
-```
-
-</TabItem>
-</Tabs>
-
[CapacitorJS](https://capacitorjs.com) is a cross platform native runtime from Ionic that enables web apps to be deployed through the app store and provides access to native deavice API.
Ionic PWA elements is a companion package that will polyfill certain browser APIs that provide no user interface with custom Ionic UI.
diff --git a/web/docs/guides/with-ionic-react.mdx b/web/docs/guides/with-ionic-react.mdx
index a04a9f92648..15d8d0950f9 100644
--- a/web/docs/guides/with-ionic-react.mdx
+++ b/web/docs/guides/with-ionic-react.mdx
@@ -160,56 +160,18 @@ Let's start building the React app from scratch.
We can use the [Ionic CLI](https://ionicframework.com/docs/cli) to initialize
an app called `supabase-ionic-react`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install -g @ionic/cli
ionic start supabase-ionic-react blank --type react
cd supabase-ionic-react
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add -g @ionic/cli
-ionic start supabase-ionic-react blank --type react
-cd supabase-ionic-react
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
diff --git a/web/docs/guides/with-ionic-vue.mdx b/web/docs/guides/with-ionic-vue.mdx
index b2d1ef7c7ad..05a60fb475c 100644
--- a/web/docs/guides/with-ionic-vue.mdx
+++ b/web/docs/guides/with-ionic-vue.mdx
@@ -160,56 +160,18 @@ Let's start building the Vue app from scratch.
We can use the [Ionic CLI](https://ionicframework.com/docs/cli) to initialize
an app called `supabase-ionic-vue`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install -g @ionic/cli
ionic start supabase-ionic-vue blank --type vue
cd supabase-ionic-vue
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add -g @ionic/cli
-ionic start supabase-ionic-vue blank --type vue
-cd supabase-ionic-vue
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -587,28 +549,10 @@ Every Supabase project is configured with [Storage](/docs/guides/storage) for ma
First install two packages in order to interact with the user's camera.
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @ionic/pwa-elements @capacitor/camera
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @ionic/pwa-elements @capacitor/camera
-```
-
-</TabItem>
-</Tabs>
-
[CapacitorJS](https://capacitorjs.com) is a cross platform native runtime from Ionic that enables web apps to be deployed through the app store and provides access to native deavice API.
Ionic PWA elements is a companion package that will polyfill certain browser APIs that provide no user interface with custom Ionic UI.
diff --git a/web/docs/guides/with-nextjs.mdx b/web/docs/guides/with-nextjs.mdx
index f12a79fd8eb..55455c1a7e4 100644
--- a/web/docs/guides/with-nextjs.mdx
+++ b/web/docs/guides/with-nextjs.mdx
@@ -177,28 +177,10 @@ cd supabase-nextjs
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env.local`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -434,28 +416,10 @@ export default function Home() {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm run dev
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn dev
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
diff --git a/web/docs/guides/with-react.mdx b/web/docs/guides/with-react.mdx
index cf82aa974cb..d59a74686e8 100644
--- a/web/docs/guides/with-react.mdx
+++ b/web/docs/guides/with-react.mdx
@@ -167,54 +167,17 @@ Let's start building the React app from scratch.
We can use [Create React App](https://create-react-app.dev/docs/getting-started/) to initialize
an app called `supabase-react`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npx create-react-app supabase-react --use-npm
cd supabase-react
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-npx create-react-app supabase-react
-cd supabase-react
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -444,28 +407,10 @@ export default function App() {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm start
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn start
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
![Supabase React](/img/supabase-react-demo.png)
@@ -476,7 +421,7 @@ Every Supabase project is configured with [Storage](/docs/guides/storage) for ma
### Add @reach/visually-hidden
-The upload widget uses one additional npm library. You can install it like so: `npm install @reach/visually-hidden` or `yarn add @reach/visually-hidden`.
+The upload widget uses one additional npm library. You can install it like so: `npm install @reach/visually-hidden`.
### Create an upload widget
diff --git a/web/docs/guides/with-solidjs.mdx b/web/docs/guides/with-solidjs.mdx
index cc5b32aeb98..bd54f96c916 100644
--- a/web/docs/guides/with-solidjs.mdx
+++ b/web/docs/guides/with-solidjs.mdx
@@ -173,28 +173,10 @@ cd supabase-solid
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -425,28 +407,10 @@ export default () => {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm start
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn start
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
![Supabase SolidJS](/img/supabase-solidjs-demo.png)
diff --git a/web/docs/guides/with-svelte.mdx b/web/docs/guides/with-svelte.mdx
index db36791555d..5eea641007b 100644
--- a/web/docs/guides/with-svelte.mdx
+++ b/web/docs/guides/with-svelte.mdx
@@ -159,28 +159,10 @@ cd supabase-svelte
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -192,52 +174,16 @@ SVELTE_APP_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
Our app is almost functional, to make svelte work with supabase and .env files we first need to change the `rollup.config.js` file a bit.
Supabase imports `json` files, to convert .json files to ES6 modules we need the `@rollup/plugin-json` install it by running:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
-```bash
-npm install --save-dev @rollup/plugin-json
-```
-
-</TabItem>
-<TabItem value="YARN">
-
```bash
-yarn add --save-dev @rollup/plugin-json
+ npm install --save-dev @rollup/plugin-json
```
-</TabItem>
-</Tabs>
-
Furthermore, to use the .env with svelte we need another rollup plugin. Install:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
-```bash
-npm install --save-dev dotenv @rollup/plugin-replace
-```
-
-</TabItem>
-<TabItem value="YARN">
-
```bash
-yarn add --save-dev dotenv @rollup/plugin-replace
+ npm install --save-dev dotenv @rollup/plugin-replace
```
-</TabItem>
-</Tabs>
-
and add these plugins to the `rollup.config.js` file.
```js title="rollup.config.js"
@@ -475,28 +421,10 @@ Now that we have all the components in place, let's update `App.svelte`:
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm run dev
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn dev
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:5000](http://localhost:5000) and you should see the completed app.
> ⚠️ WARNING: Svelte uses by default `port 5000`, Supabase uses `port 3000`. To change the redirection port for supabase go to: `Authentication > Settings` and change the `Site Url` to `localhost:5000`
diff --git a/web/docs/guides/with-sveltekit.mdx b/web/docs/guides/with-sveltekit.mdx
index 677d5526e1b..54e29557966 100644
--- a/web/docs/guides/with-sveltekit.mdx
+++ b/web/docs/guides/with-sveltekit.mdx
@@ -153,54 +153,17 @@ Let's start building the Svelte app from scratch.
We can use the [SvelteKit Skeleton Project](https://kit.svelte.dev/docs) to initialize
an app called `supabase-sveltekit`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm init svelte@next supabase-sveltekit
cd supabase-sveltekit
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn init svelte@next supabase-sveltekit
-cd supabase-sveltekit
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the `SUPABASE_URL` and the `SUPABASE_KEY` key that you copied [earlier](#get-the-api-keys).
@@ -421,28 +384,10 @@ Now that we have all the components in place, let's update `src/routes/index.sve
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm run dev
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn dev
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
> ⚠️ WARNING: Svelte uses by default `port 5000`, Supabase uses `port 3000`. To change the redirection port for supabase go to: `Authentication > Settings` and change the `Site Url` to `localhost:5000`
diff --git a/web/docs/guides/with-vue-3.mdx b/web/docs/guides/with-vue-3.mdx
index ff3d51ca259..ca13fb64eee 100644
--- a/web/docs/guides/with-vue-3.mdx
+++ b/web/docs/guides/with-vue-3.mdx
@@ -152,14 +152,6 @@ Let's start building the Vue 3 app from scratch.
We can quickly use [Vite with Vue 3 Template](https://vitejs.dev/guide/#scaffolding-your-first-vite-project) to initialize
an app called `supabase-vue-3`:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
# npm 6.x
npm init @vitejs/app supabase-vue-3 --template vue
@@ -170,42 +162,12 @@ npm init @vitejs/app supabase-vue-3 -- --template vue
cd supabase-vue-3
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn init @vitejs/app supabase-vue-3 --template vue
-
-cd supabase-vue-3
-```
-
-</TabItem>
-</Tabs>
-
Then let's install the only additional dependency: [supabase-js](https://github.com/supabase/supabase-js)
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm install @supabase/supabase-js
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn add @supabase/supabase-js
-```
-
-</TabItem>
-</Tabs>
-
And finally we want to save the environment variables in a `.env`.
All we need are the API URL and the `anon` key that you copied [earlier](#get-the-api-keys).
@@ -487,28 +449,10 @@ export default {
Once that's done, run this in a terminal window:
-<Tabs
-defaultValue="NPM"
-values={[
- {label: 'npm', value: 'NPM'},
- {label: 'Yarn', value: 'YARN'},
-]}>
-<TabItem value="NPM">
-
```bash
npm run dev
```
-</TabItem>
-<TabItem value="YARN">
-
-```bash
-yarn dev
-```
-
-</TabItem>
-</Tabs>
-
And then open the browser to [localhost:3000](http://localhost:3000) and you should see the completed app.
![Supabase Vue 3](/img/supabase-vue-3-demo.png)