mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 12:57:48 +00:00
feat: use api key for init tickets
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { PUBLIC_APPWRITE_PROJECT_INIT_ID } from '$env/static/public';
|
||||
import { Client, Account, Databases } from '@appwrite.io/console';
|
||||
import { Client, Account } from '@appwrite.io/console';
|
||||
|
||||
const client = new Client();
|
||||
|
||||
client.setEndpoint('https://cloud.appwrite.io/v1').setProject(PUBLIC_APPWRITE_PROJECT_INIT_ID);
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
||||
.setProject(PUBLIC_APPWRITE_PROJECT_INIT_ID);
|
||||
|
||||
export const appwriteInit = {
|
||||
client,
|
||||
account: new Account(client),
|
||||
database: new Databases(client)
|
||||
account: new Account(client)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user