how to upload image in next js without cors error using appwrite. I am sending image via jsx element but now in production i want to create a new api route can anyone help me
If yhe action is done on the client side of nextjs then you'll need to add your app URL as Web platfrom in the Appwrite console
Did you did that?
wait let me see
where sould i use it exactly
i have deploye the code to vercel
In the console in the overview page. You'll see an option to add platform. Add web and in the host put the frontend domain
Appwrite console
is this ok
Yes
Recommended threads
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...
- how to access the value of account statu...
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...