🔧 Add s3 bucket

This commit is contained in:
Luke Vella 2024-09-09 21:14:04 +01:00
parent 716d7ddf8d
commit 4bd35c2c8b
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
2 changed files with 4 additions and 1 deletions

View file

@ -22,6 +22,9 @@ const nextConfig = {
hostname: "app.rallly.co", hostname: "app.rallly.co",
pathname: "/api/storage/**", pathname: "/api/storage/**",
}, },
{
hostname: "rallly-public.s3.amazonaws.com",
},
], ],
}, },
productionBrowserSourceMaps: true, productionBrowserSourceMaps: true,

View file

@ -38,7 +38,7 @@ export async function GET(
const imageKey = context.params.key.join("/"); const imageKey = context.params.key.join("/");
if (!imageKey) { if (!imageKey) {
return new Response("No key provided", { status: 400 }); return new NextResponse("No key provided", { status: 400 });
} }
try { try {