How to deploy a static NextJS in AWS S3 | Host NextJS in S3 Bucket

preview_player
Показать описание
This video will show you how to upload and deploy NextJS static in AWS. By following the instructions you can easily host a Nextjs in s3 quickly.

"build": "next build && next export -o build",
2. To build `$npm run build`
3. Create a new S3 bucket and upload all files and folders in the bucket from the "**build**" folder
4. Make it a Static website
5. Enable ACL in the permissions

#nextjs #awss3 #next

------------------------ Thanks for watching ---------------------------------------
Рекомендации по теме
Комментарии
Автор

still not working in my end using
module.exports = {
images: {
unoptimized: true,
}
}

qatester
Автор

Problem is, you need to manually add ".html". If you try to go to the /yt page directly it will 404. NextJS routing apparently can't figure out the static hosting...

Have anyone found a workaround for this, that is more simple than creating a lambda function to intervene and add ".html" to every single page request?

over