Rank 1: Thread
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",