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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...