feat: Update environment variable naming and refactor image URL handling across the application

This commit is contained in:
2024-11-26 10:34:29 +02:00
parent 29e8d3d133
commit b7771ac827
14 changed files with 107 additions and 69 deletions

View File

@@ -1,7 +1,17 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
images: {
remotePatterns: [
{
protocol: "https",
hostname: new URL(process.env.NEXT_PUBLIC_S3_PUBLIC_IMAGE_URL || "")
.hostname,
port: "",
pathname: "/**",
},
],
},
};
export default nextConfig;