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
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...