mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-08 12:57:48 +00:00
feat: update region placeholder
This commit is contained in:
@@ -51,7 +51,7 @@ import android.content.Context
|
||||
import io.appwrite.Client
|
||||
|
||||
object Appwrite {
|
||||
private const val ENDPOINT = "https://cloud.appwrite.io/v1"
|
||||
private const val ENDPOINT = "https://<REGION>.cloud.appwrite.io/v1"
|
||||
private const val PROJECT_ID = "<PROJECT_ID>"
|
||||
|
||||
private lateinit var client: Client
|
||||
|
||||
@@ -62,7 +62,7 @@ Look for `// Add this line 👇` to find where the changes made here.
|
||||
|
||||
```kotlin
|
||||
object Appwrite {
|
||||
private const val ENDPOINT = "https://cloud.appwrite.io/v1"
|
||||
private const val ENDPOINT = "https://<REGION>.cloud.appwrite.io/v1"
|
||||
private const val PROJECT_ID = "<PROJECT_ID>"
|
||||
|
||||
private lateinit var client: Client
|
||||
|
||||
@@ -103,7 +103,7 @@ import android.content.Context
|
||||
import io.appwrite.Client
|
||||
|
||||
object Appwrite {
|
||||
private const val ENDPOINT = "https://cloud.appwrite.io/v1"
|
||||
private const val ENDPOINT = "https://<REGION>.cloud.appwrite.io/v1"
|
||||
private const val PROJECT_ID = "<PROJECT_ID>"
|
||||
|
||||
private lateinit var client: Client
|
||||
|
||||
@@ -83,7 +83,7 @@ For example, your `.env` might look something similar to this.
|
||||
|
||||
```env
|
||||
APPWRITE_KEY=<YOUR_API_KEY>
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_PROJECT=<PROJECT_ID>
|
||||
```
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ For example, your `.env` might look something similar to this.
|
||||
|
||||
```env
|
||||
NEXT_APPWRITE_KEY=<YOUR_API_KEY>
|
||||
NEXT_PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
NEXT_PUBLIC_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
NEXT_PUBLIC_APPWRITE_PROJECT=<PROJECT_ID>
|
||||
```
|
||||
|
||||
|
||||
@@ -103,6 +103,6 @@ For example, your `.env` might look something similar to this.
|
||||
|
||||
```env
|
||||
APPWRITE_KEY=<YOUR_API_KEY>
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_PROJECT=<PROJECT_ID>
|
||||
```
|
||||
|
||||
@@ -46,7 +46,7 @@ Your project id is located in the **Settings** page in the Appwrite console.
|
||||
Add a `.env` file to the root directory and add the following code to it, replacing `PROJECT_ID` with your project id.
|
||||
|
||||
```
|
||||
VITE_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
VITE_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
VITE_APPWRITE_PROJECT=PROJECT_ID
|
||||
```
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ export const appwrite = {
|
||||
For example, your `.env` might look something similar to this.
|
||||
|
||||
```env
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_PROJECT=642sdddf85b440dc7e5bf
|
||||
```
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ For example, your `.env` might look something similar to this.
|
||||
|
||||
```text
|
||||
APPWRITE_KEY=<YOUR_API_KEY>
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_ENDPOINT=https://<REGION>.cloud.appwrite.io/v1
|
||||
PUBLIC_APPWRITE_PROJECT=<PROJECT_ID>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user