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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...