From 0dd4377777ba027e196abaeec5dbce04f7d96ec8 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 5 Nov 2024 18:34:04 +0100 Subject: [PATCH] feat: update region placeholder --- src/routes/blog/post/building-init-giveaway-app/+page.markdoc | 2 +- .../+page.markdoc | 2 +- src/routes/docs/advanced/security/https/+page.markdoc | 2 +- .../docs/products/ai/integrations/elevenlabs/+page.markdoc | 2 +- .../docs/products/ai/integrations/langchain/+page.markdoc | 2 +- src/routes/docs/products/ai/integrations/lmnt/+page.markdoc | 2 +- src/routes/docs/products/ai/integrations/openai/+page.markdoc | 2 +- src/routes/docs/products/ai/integrations/pinecone/+page.markdoc | 2 +- .../docs/products/ai/integrations/togetherai/+page.markdoc | 2 +- .../products/ai/tutorials/image-classification/+page.markdoc | 2 +- .../docs/products/ai/tutorials/music-generation/+page.markdoc | 2 +- .../docs/products/ai/tutorials/object-detection/+page.markdoc | 2 +- .../docs/products/ai/tutorials/speech-recognition/+page.markdoc | 2 +- .../docs/products/ai/tutorials/text-to-speech/+page.markdoc | 2 +- src/routes/docs/products/auth/quick-start/+page.markdoc | 2 +- src/routes/docs/products/functions/execute/+page.markdoc | 2 +- src/routes/docs/tooling/command-line/installation/+page.markdoc | 2 +- .../docs/tooling/command-line/non-interactive/+page.markdoc | 2 +- src/routes/docs/tutorials/android/step-3/+page.markdoc | 2 +- src/routes/docs/tutorials/android/step-4/+page.markdoc | 2 +- src/routes/docs/tutorials/android/step-6/+page.markdoc | 2 +- src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc | 2 +- src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc | 2 +- src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc | 2 +- src/routes/docs/tutorials/nuxt/step-3/+page.markdoc | 2 +- .../docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc | 2 +- .../docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc index 7050bd2eee..c63470cb90 100644 --- a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc +++ b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc @@ -88,7 +88,7 @@ We then entered the application directory, installed the Appwrite Web SDK and Pi ```js // ./src/lib/constants.js -export const APPWRITE_ENDPOINT = 'https://cloud.appwrite.io/v1'; +export const APPWRITE_ENDPOINT = 'https://.cloud.appwrite.io/v1'; export const APPWRITE_PROJECT = ''; diff --git a/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc b/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc index 9c755573c1..ca32be10ea 100644 --- a/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc +++ b/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc @@ -106,7 +106,7 @@ All of the Appwrite client SDKs for Web, Flutter, iOS, or Android come with buil import { Client } from "appwrite"; const client = new Client() - .setEndpoint('') + .setEndpoint('https://.cloud.appwrite.io/v1') .setProject(''); client.subscribe('account', response => { diff --git a/src/routes/docs/advanced/security/https/+page.markdoc b/src/routes/docs/advanced/security/https/+page.markdoc index b1b3751dfb..e33da7b766 100644 --- a/src/routes/docs/advanced/security/https/+page.markdoc +++ b/src/routes/docs/advanced/security/https/+page.markdoc @@ -12,7 +12,7 @@ Redirected requests will show a `301` response status. ```http HTTP/1.1 301 Moved Permanently Content-Type: application/json -Location: https://cloud.appwrite.io/v1/ +Location: https://.cloud.appwrite.io/v1/ ``` Appwrite Cloud does not support HTTP, which is a common practice in modern development, because unencrypted diff --git a/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc b/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc index c7f9d5358d..ab3a8d6eab 100644 --- a/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc @@ -209,7 +209,7 @@ Next add code to validate the body of the request and initialize the Appwrite SD ```js const client = new Client() - .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1") + .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://.cloud.appwrite.io/v1") .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/langchain/+page.markdoc b/src/routes/docs/products/ai/integrations/langchain/+page.markdoc index 3c907af817..2ad5d5beeb 100644 --- a/src/routes/docs/products/ai/integrations/langchain/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/langchain/+page.markdoc @@ -262,7 +262,7 @@ export default class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc b/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc index 17bc1ca9b2..5e9eed765b 100644 --- a/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc @@ -216,7 +216,7 @@ import Speech from 'lmnt-node'; Next, add code to validate the body of the request and initialize the Appwrite SDK also within `main.js` following the previously added GET handler: ```js -const endpoint = process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1"; +const endpoint = process.env.APPWRITE_ENDPOINT ?? "https://.cloud.appwrite.io/v1"; const client = new Client() .setEndpoint(endpoint) diff --git a/src/routes/docs/products/ai/integrations/openai/+page.markdoc b/src/routes/docs/products/ai/integrations/openai/+page.markdoc index 1c880c1e4d..9ee55f9931 100644 --- a/src/routes/docs/products/ai/integrations/openai/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/openai/+page.markdoc @@ -205,7 +205,7 @@ Add code to validate the body of the request and initialize the Appwrite SDK: ```js const client = new Client() - .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1") + .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://.cloud.appwrite.io/v1") .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc b/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc index e0ad73eaf2..e1f9f286b6 100644 --- a/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc @@ -231,7 +231,7 @@ export default class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc b/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc index ee67414741..26c3c1d1be 100644 --- a/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc @@ -285,7 +285,7 @@ let resJson = await response.json(); // Upload image to Appwrite Storage and return URL if (req.body.type === 'image') { - const endpoint = process.env.APPWRITE_ENDPOINT || 'https://cloud.appwrite.io/v1' + const endpoint = process.env.APPWRITE_ENDPOINT || 'https://.cloud.appwrite.io/v1' const client = new Client() .setEndpoint(endpoint) diff --git a/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc b/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc index 24932c7694..f5f6c1e3fd 100644 --- a/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc @@ -119,7 +119,7 @@ class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc b/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc index 3ae5c2d4f0..9cb867da9a 100644 --- a/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc @@ -58,7 +58,7 @@ class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc b/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc index ac90913732..6419aef597 100644 --- a/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc @@ -102,7 +102,7 @@ class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc b/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc index fc914d72f5..5773de99ff 100644 --- a/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc @@ -57,7 +57,7 @@ class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc b/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc index 93b9450135..004339e208 100644 --- a/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc @@ -58,7 +58,7 @@ class AppwriteService { const client = new Client(); client .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' + process.env.APPWRITE_ENDPOINT ?? 'https://.cloud.appwrite.io/v1' ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/auth/quick-start/+page.markdoc b/src/routes/docs/products/auth/quick-start/+page.markdoc index b4f6d05322..0d21bdf33b 100644 --- a/src/routes/docs/products/auth/quick-start/+page.markdoc +++ b/src/routes/docs/products/auth/quick-start/+page.markdoc @@ -571,7 +571,7 @@ You can find a version of this example in the [Appwrite Android tutorial](/docs/ //... imports object Appwrite { - private const val ENDPOINT = "https://cloud.appwrite.io/v1" + private const val ENDPOINT = "https://.cloud.appwrite.io/v1" private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index 4f1a3d7045..88b330e4af 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -659,7 +659,7 @@ mutation { ```http -POST https://cloud.appwrite.io/v1/functions//executions HTTP/1.1 +POST https://.cloud.appwrite.io/v1/functions//executions HTTP/1.1 X-Appwrite-Project: "" X-Appwrite-Response-Format: 1.5.0 Content-Type: application/json diff --git a/src/routes/docs/tooling/command-line/installation/+page.markdoc b/src/routes/docs/tooling/command-line/installation/+page.markdoc index 59ddfdd2c9..89880b0f9e 100644 --- a/src/routes/docs/tooling/command-line/installation/+page.markdoc +++ b/src/routes/docs/tooling/command-line/installation/+page.markdoc @@ -187,7 +187,7 @@ appwrite help At any point, if you would like to change your server's endpoint, project ID, or self-signed certificate acceptance, use the `client` command. ```sh -appwrite client --endpoint https://cloud.appwrite.io/v1 +appwrite client --endpoint https://.cloud.appwrite.io/v1 appwrite client --key 23f24gwrhSDgefaY appwrite client --self-signed true appwrite client --reset // Resets your CLI configuration diff --git a/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc b/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc index aadf4f7112..425470bc0e 100644 --- a/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc +++ b/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc @@ -7,7 +7,7 @@ The Appwrite CLI can be used in a non-interactive and headless manner, without s ```sh appwrite client \ - --endpoint https://cloud.appwrite.io/v1 \ + --endpoint https://.cloud.appwrite.io/v1 \ --project-id [PROJECT_ID] \ --key YOUR_API_KEY ``` diff --git a/src/routes/docs/tutorials/android/step-3/+page.markdoc b/src/routes/docs/tutorials/android/step-3/+page.markdoc index 1db4e47e89..a3108d09d4 100644 --- a/src/routes/docs/tutorials/android/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-3/+page.markdoc @@ -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://.cloud.appwrite.io/v1" private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/tutorials/android/step-4/+page.markdoc b/src/routes/docs/tutorials/android/step-4/+page.markdoc index 67527d5666..139a41ebf7 100644 --- a/src/routes/docs/tutorials/android/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-4/+page.markdoc @@ -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://.cloud.appwrite.io/v1" private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/tutorials/android/step-6/+page.markdoc b/src/routes/docs/tutorials/android/step-6/+page.markdoc index defa21fbdb..573b706746 100644 --- a/src/routes/docs/tutorials/android/step-6/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-6/+page.markdoc @@ -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://.cloud.appwrite.io/v1" private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc index 2150a7e06a..cdc904cafb 100644 --- a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc @@ -83,7 +83,7 @@ For example, your `.env` might look something similar to this. ```env APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 +PUBLIC_APPWRITE_ENDPOINT=https://.cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc index 30ce53e188..191feb1375 100644 --- a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc @@ -64,7 +64,7 @@ For example, your `.env` might look something similar to this. ```env NEXT_APPWRITE_KEY= -NEXT_PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 +NEXT_PUBLIC_APPWRITE_ENDPOINT=https://.cloud.appwrite.io/v1 NEXT_PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc index 689428427f..6c72540971 100644 --- a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc @@ -103,6 +103,6 @@ For example, your `.env` might look something similar to this. ```env APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 +PUBLIC_APPWRITE_ENDPOINT=https://.cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc index bb1fde26c7..e4d871e60b 100644 --- a/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc @@ -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://.cloud.appwrite.io/v1 VITE_APPWRITE_PROJECT=PROJECT_ID ``` diff --git a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc index c4f9b3c9af..6d31bb9030 100644 --- a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc @@ -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://.cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT=642sdddf85b440dc7e5bf ``` diff --git a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc index ea8398ed2f..699b337127 100644 --- a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc @@ -69,7 +69,7 @@ For example, your `.env` might look something similar to this. ```text APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 +PUBLIC_APPWRITE_ENDPOINT=https://.cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ```