works good if use vercel or any other service that use Edge. Cost are pretty high. In place where I work, we are runnig 35-70 EC2 machines to host our service, cost for using and all transformations are huge. Nextjs is pretty slow, and in the use a lot resources to handle Images, also if you have multiple intances you will have problems with caching this image (cache is a state in the end). To be honest as more I use nextjs more i thing that nextjs is not a good solution for enterprise software.
Using is not always the best because it will tax your server's CPU. It may not be an issue if your app/site has only a handful of images but if you have hundreds or thousands of images, you can expect higher bills. Especially, if you don't use Vercel to host it. :)
Why ? It's automatically set ? What is the behaviour on loading, does it load prefilling the image dimensions or does it change after loading (which is bad practice )?
In error #03, "Leaving Routes without validation," I'm curious whether this could potentially pose a security risk. Revealing less about our API functionality might enhance security by limiting information available to potential hackers. Thoughts on considering this aspect for a more robust security stance?
nope, but you cannot directly define a server component inside the return statement of a client component. Instead you have to pass it in as children (eg: and render it as {children} inside the client component
For the separation of client/server components section, could you put the uncontrolled form in a server component and handle the onSubmit in a client component?
You can't do it that way, cause the onSubmit event handler has to be attached to the element, so it must be a client component. Otherwise, server actions can be used in here but the main part of why we are using a client component is not about onSubmit, it is more about the state handling and displaying that uploaded image.
@@PanosPitsi innerHTML dev. I don't need a library to draw html. and my html doesn't reload every time I update a variable for no reason. there is zero reason to have a server for almost every use case