Rank 3: Container
talking about this example right here:
const sdk = require('node-appwrite'); // also is this possible to turn into an import module?
const client = new sdk.Client();
const databases = new sdk.Databases(client);
client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('xxx') // Your project ID .setKey('???') // Your secret API key;i also have Client.js and i wanna know if this code above is gonna mess with this:
import { Client, Account } from 'appwrite';
export const client = new Client();
client .setEndpoint(import.meta.env.VITE_REACT_ENDPOINT) .setProject(import.meta.env.VITE_REACT_PROJ); // Replace with your project ID
export const account = new Account(client);export { ID } from 'appwrite'; i was thinking of doing something like
import { Client, Account, Databases } from 'appwrite';
export const client = new Client();
client .setEndpoint(import.meta.env.VITE_REACT_ENDPOINT) .setProject(import.meta.env.VITE_REACT_PROJ); // Replace with your project ID
export const account = new Account(client);export const databases = new Databases(client); export { ID } from 'appwrite'; but i dont really know if thats going to work, anyone could help me?