
I am using node-appwrite sdk for database operations when i run it locally everything works but after deploying it on appwrite sites nextjs app the database operation does not works this is my setup
export async function createAdminClient() { const client = new Client() .setEndpoint(process.env.NEXT_APPWRITE_API_ENDPOINT) .setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY);
const { tableDB } = await createAdminClient();
const savedOrder = await tableDB.createRow({ databaseId: config.databaseId!, tableId: config.tableId!, rowId: ID.unique(), data: order, });
I am using node 22 same is configured on appwrite sites as well "node-appwrite": "^19.0.0",
ENV of local and prod is exactly same on appwrite sites still facing issue , any help or suggestion would be helpful
headers":{"x-sdk-name":"Node.js","x-sdk-platform":"server","x-sdk-language":"nodejs","x-sdk-version":"19.1.0","user-agent":"AppwriteNodeJSSDK/19.1.0 (linux; x64) Node.js/22","X-Appwrite-Response-Format":"1.8.0",
Recommended threads
- Update Main Account email Password
i am trying to update main user password with " users = Users(client) result = users.update_password( user_id = 'myuserid', password = ''newupdatedpass...
- 400 - Invalid query - Attribute not foun...
So, using the cloud console..... setting up a new table with a one-way relationship column, I get this error and each time I try to open the database I get the ...
- No Access Control Allow Origin
Any documentation about this? It doesnt allow my chrome extension ...
