Next.js Discord

Discord Forum

How to host a NextJS website with a ton of images?

Unanswered
White-tailed Tropicbird posted this in #help-forum
Open in Discord
White-tailed TropicbirdOP
So I wanted to host a website that has a lot of images.
I tried using AWS Amplify but I get a "The size of the output build is too big" error, because I have a bunch of images in the /public folder.
How do I make this work with image optimization?
I've read you can store the image in a S3 bucket, but that loses you the image optimization part.

6 Replies

White-tailed TropicbirdOP
Maybe some alternatives to AWS Amplify?
Vercel is wayy too expensive. (No I cant do it under the hobby license, because it's for my fathers firm)
How do I do it properly? How do big websites do it?
maybe u want to use cloudinary, imgix and so on
European sprat