mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
packages
This commit is contained in:
16
packages/appwrite/test/appwriteClient.ts
Normal file
16
packages/appwrite/test/appwriteClient.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Client as Appwrite, Account } from "appwrite";
|
||||
|
||||
const APPWRITE_URL = "https://cloud.appwrite.io/v1";
|
||||
const APPWRITE_PROJECT = "6697687d002cbd31ba6b";
|
||||
|
||||
const client = new Appwrite();
|
||||
|
||||
client.setEndpoint(APPWRITE_URL).setProject(APPWRITE_PROJECT);
|
||||
const account = new Account(client);
|
||||
|
||||
client.headers = {
|
||||
...client.headers,
|
||||
"Accept-Encoding": "identity",
|
||||
};
|
||||
|
||||
export { client, account };
|
||||
Reference in New Issue
Block a user