Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change references to cloud.appwrite.io #1476

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@appwrite.io/console": "^0.6.2",
"@appwrite.io/pink": "~0.26.0",
"@appwrite.io/pink-icons": "~0.26.0",
"@appwrite.io/repo": "github:appwrite/appwrite#1.6.x",
"@appwrite.io/repo": "github:appwrite/appwrite#feat-multi-region-docs",
"@internationalized/date": "3.5.0",
"@melt-ui/pp": "^0.3.2",
"@melt-ui/svelte": "^0.74.4",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Browsers have a default font size that users can change via the browser setting.
import { Client, Account } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>') // Your project ID

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Now, in your Flutter app, you can use these mock numbers for authentication:
import 'package:appwrite/appwrite.dart';

Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

Account account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { Client, Account } from "appwrite";
const client = new Client();

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>'); // Your project ID

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Here is what this would look like using Swift.
import Appwrite

let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key

Expand Down Expand Up @@ -66,7 +66,7 @@ You can send SMS messages using a Server SDK. To send SMS messages immediately,
import Appwrite

let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key

Expand Down Expand Up @@ -174,7 +174,7 @@ import { Client, Account } from "appwrite";
const client = new Client();

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>'); // Your project ID

const account = new Account(client);
Expand Down Expand Up @@ -243,7 +243,7 @@ One of the most common examples of SDK Enums is OAuth providers. To log in with
import { Client, Account, OAuthProvider } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import { Appwrite, Databases, Query } from "appwrite";

const client = new Appwrite();
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('articles-demo'); // Your project ID
const databases = new Databases(client);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import { Client, Account, ID } from 'react-native-appwrite';
const client = new Client();

client
.setEndpoint('http://cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setProject('455x34dfkj') // Your project ID
.setPlatform('com.example.myappwriteapp'); // Your application ID or bundle ID

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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://<REGION>.cloud.appwrite.io/v1';

export const APPWRITE_PROJECT = '<PROJECT_ID>';

Expand Down
4 changes: 2 additions & 2 deletions src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The admin client must be set with an API key that has the necessary scopes in or

```jsx
const adminClient = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<API_KEY>')
```
Expand Down Expand Up @@ -90,7 +90,7 @@ The session client accepts the generated session secret and sets it using the `c

```jsx
const sessionClient = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
```

Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/enhancing-type-safety/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ With the latest release of Appwrite, we have taken steps to improve type safety
import { Client, Account, OAuthProvider } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/enums-api-design/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ With the latest release of Appwrite, we have taken steps to improve type safety
import { Client, Account, OAuthProvider } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ To define scopes in the Appwrite console, navigate to your function's settings a

```jsx
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Hardcoded API endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Hardcoded API endpoint
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY) // Static API key
```
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/image-classification/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def main(context):

client = (
Client()
.set_endpoint("https://cloud.appwrite.io/v1")
.set_endpoint("https://<REGION>.cloud.appwrite.io/v1")
.set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
.set_key(os.environ["APPWRITE_API_KEY"])
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ First, we initialize the login process by sending an email with the magic URL. I
import { Client, Account, ID } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -103,7 +103,7 @@ First, we initialize the login process by sending an email. If the email has nev
import { Client, Account, ID } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -138,7 +138,7 @@ First, we initialize the login process by sending an SMS. If the phone number ha
import 'package:appwrite/appwrite.dart';

final client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

final account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import { Client, Account, ID } from 'react-native-appwrite';
const client = new Client();

client
.setEndpoint('http://cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setProject('455x34dfkj') // Your project ID
.setPlatform('com.example.myappwriteapp'); // Your application ID or bundle ID

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Bringing along benefits such as massively reducing friction when using routes th
import { Client, Account, OAuthProvider } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The admin client will need to be initialized with an API key in order to bypass
import { Client } from "node-appwrite"

const adminClient = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<YOUR_API_KEY>')
```
Expand All @@ -86,7 +86,7 @@ A session client will allow us to make requests as an authenticated end-user wit

```jsx
const sessionClient = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')

const session = req.cookies.session
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/messaging-explained/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Here’s an example of how you would programmatically send an SMS to a topic usi
const sdk = require('node-appwrite');

const client = new sdk.Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { Client, Account } from 'appwrite'

// Initialize Appwrite client
const client = new Client()
client.setEndpoint('https://cloud.appwrite.io/v1').setProject('<PROJECT_ID>')
client.setEndpoint('https://<REGION>.cloud.appwrite.io/v1').setProject('<PROJECT_ID>')

// Initialize Account
const account = new Account(client)
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/oauth-openid/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Once that is done, you can use any of the Appwrite client SDKs to implement OAut
import { Client, Account, OAuthProvider } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Appwrite Authentication also leverages password hashing algorithms to allow deve
import { Client, Account, ID } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const client = new sdk.Client();
const messaging = new sdk.Messaging(client);

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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('<https://cloud.appwrite.io/v1>')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

client.subscribe('account', response => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import { Client, Account, OAuthProvider } from 'appwrite'

const client = new Client()
client
.setEndpoint('https://cloud.appwrite.io/v1')// The Appwrite API endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')// The Appwrite API endpoint
.setProject('project-id')// Your Appwrite project IDexport const account = new Account(client)
export { OAuthProvider }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ First, we initialize the login process by sending an email with the magic URL. I
import { Client, Account, ID } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -100,7 +100,7 @@ First, we initialize the login process by sending an email. If the email has nev
import { Client, Account, ID } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -135,7 +135,7 @@ First, we initialize the login process by sending an SMS. If the phone number ha
import 'package:appwrite/appwrite.dart';

final client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

final account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const client = new sdk.Client();
const messaging = new sdk.Messaging(client);

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/understand-data-queries/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ One of the data retrieval APIs the Appwrite Database offers is a list documents
import { Client, Databases, Query } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const databases = new Databases(client);
Expand Down
8 changes: 2 additions & 6 deletions src/routes/contact-us/enterprise/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,11 @@
<Main>
<div class="web-big-padding-section">
<div id="form" class="web-big-padding-section-level-1 u-padding-0 u-overflow-hidden">
<div
class="web-big-padding-section-level-2 is-margin-replace-padding relative"
>
<div class="web-big-padding-section-level-2 is-margin-replace-padding relative">
<div class="relative">
<div class="web-container relative">
<!-- before submit -->
<div
class="relative u-z-index-1 web-grid-1-1-opt-2 u-gap-32 e-u-row-gap-0"
>
<div class="u-z-index-1 web-grid-1-1-opt-2 u-gap-32 e-u-row-gap-0 relative">
<div>
<div
class="web-u-max-inline-size-none-mobile"
Expand Down
Loading
Loading