From the course: The Freelance Stack: Real Project with Next.js and Strapi
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Replace image paths in production db to use AWS S3 bucket images - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Replace image paths in production db to use AWS S3 bucket images
Cool, so let's push what we have right now to the cloud. So here I'm just going to say S3 integration for media uploads. like that. And I've also tried something else on my on my github so I just have to force it there. Okay and now it's going to be building up. Now while that is doing it we're going to talk about what we actually still have to do. The very first thing is that right now these images here link to local uploads and we want to link them to cloud uploads. Right now in the cloud there's only two screenshots here and both of them are for the same image that we literally just put into our media library here locally. So for now I'm just actually going to delete that because we don't need it right there. By the way if I delete on one end it automatically deletes in the S3 bucket as well. So what I want to do is have all of these assets that we're using locally now also show up in the S3 bucket and then we need to link to the new images that have been created here. So what can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Deployment overview6m 10s
-
(Locked)
Deploy Strapi server to Heroku13m 56s
-
(Locked)
Difference between production Strapi and local development2m 16s
-
(Locked)
Migrate local database from SQLite to Postgres to the production database16m 40s
-
(Locked)
Handle image uploads in production with AWS S320m 52s
-
(Locked)
Replace image paths in production db to use AWS S3 bucket images8m 37s
-
(Locked)
Deployment of Next.js frontend to Heroku7m 34s
-
(Locked)