Updated next.config.ts for deployment config and image upload from supabase

This commit is contained in:
pascalyazid committed 2026-09-28 17:19:29 +02:00
1 parent 274e9c3fae
commit cde76ef5fd
2 files changed
+7 -5

No files matched your search

+1
View File
@@ -51,6 +51,7 @@ export function AvatarUpload({ avatarUrl }: Readonly<{ avatarUrl: string | null
<Image <Image
src={avatarUrl} src={avatarUrl}
alt="" alt=""
loading="eager"
width={200} width={200}
height={200} height={200}
className="size-20 rounded-full border-4 border-white object-cover shadow-md transition group-hover:opacity-80" className="size-20 rounded-full border-4 border-white object-cover shadow-md transition group-hover:opacity-80"
+6 -5
View File
@@ -1,16 +1,17 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const { hostname: supabaseHostname } = new URL(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
)
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
basePath: process.env.BASE_PATH, basePath: process.env.BASE_PATH,
allowedDevOrigins: ["100.64.0.10"],
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
protocol: "https", hostname: supabaseHostname,
hostname: "supabase.pascalyazid.com", pathname: '/storage/v1/object/**',
port: "",
pathname: "/storage/v1/object/sign/avatars/**",
}, },
], ],
}, },