mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
docs: replace with LegacyApiKeys component
This commit is contained in:
1 parent
30472c7fc5
commit
3ffaffc0ed
22 files changed
+25
-25
No files matched your search
@@ -36,7 +36,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in the `src/environments/environment.ts` file.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='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.
|
||||
|
||||
```ts src/environments/environment.ts
|
||||
|
||||
@@ -38,7 +38,7 @@ npx expo install @supabase/supabase-js @react-native-async-storage/async-storage
|
||||
```
|
||||
|
||||
Now let's create a helper file to initialize the Supabase client.
|
||||
We need the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
We need the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
These variables are safe to expose in your Expo app since Supabase has
|
||||
[Row Level Security](/docs/guides/auth#row-level-security) enabled on your Database.
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally, we want to save the environment variables in the `src/environments/environment.ts` file.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='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.
|
||||
|
||||
```ts environment.ts
|
||||
|
||||
@@ -37,7 +37,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
REACT_APP_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -37,7 +37,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
VUE_APP_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -55,7 +55,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env.local`.
|
||||
Create a `.env.local` file at the root of the project, and paste the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
Create a `.env.local` file at the root of the project, and paste the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env.local
|
||||
NEXT_PUBLIC_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -36,7 +36,7 @@ npm install @nuxtjs/supabase --save-dev
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
SUPABASE_URL="YOUR_SUPABASE_URL"
|
||||
|
||||
@@ -36,7 +36,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env.local` file.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
VITE_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -103,7 +103,7 @@ Say, **yes** and it will setup the Supabase client in your app and also provide
|
||||
```
|
||||
|
||||
Next, we want to save the environment variables in a `.env`.
|
||||
We need the `API URL` as well as the <PublishableKey/> and `jwt_secret` keys that you copied [earlier](#get-the-api-keys).
|
||||
We need the `API URL` as well as the <LegacyApiKeys keyword='publishable' type='anon'/> and `jwt_secret` keys that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -83,7 +83,7 @@ export const supabaseClient = createClient(supabaseUrl, supabaseAnonKey, {
|
||||
})
|
||||
```
|
||||
|
||||
And then, we want to save the environment variables in a `.env.local` file. All you need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
And then, we want to save the environment variables in a `.env.local` file. All you need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env.local
|
||||
VITE_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -35,7 +35,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
VITE_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -36,7 +36,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
VITE_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
@@ -28,7 +28,7 @@ Add the [supabase-swift](https://github.com/supabase/supabase-swift) dependency.
|
||||
Add the `https://github.com/supabase/supabase-swift` package to your app. For instructions, see the [Apple tutorial on adding package dependencies](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).
|
||||
|
||||
Create a helper file to initialize the Supabase client.
|
||||
You need the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
You need the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
These variables will be exposed on the application, and that's completely fine since you have
|
||||
[Row Level Security](/docs/guides/auth#row-level-security) enabled on your database.
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ npm install @supabase/supabase-js
|
||||
```
|
||||
|
||||
And finally we want to save the environment variables in a `.env`.
|
||||
All we need are the API URL and the <PublishableKey/> key that you copied [earlier](#get-the-api-keys).
|
||||
All we need are the API URL and the <LegacyApiKeys keyword='publishable' type='anon'/> key that you copied [earlier](#get-the-api-keys).
|
||||
|
||||
```bash .env
|
||||
VITE_SUPABASE_URL=YOUR_SUPABASE_URL
|
||||
|
||||
Reference in new issue
Block a user