Updated next.config.ts for deployment config and image upload from supabase
This commit is contained in:
1 parent
274e9c3fae
commit
cde76ef5fd
2 files changed
+7
-5
No files matched your search
@@ -51,6 +51,7 @@ export function AvatarUpload({ avatarUrl }: Readonly<{ avatarUrl: string | null
|
||||
<Image
|
||||
src={avatarUrl}
|
||||
alt=""
|
||||
loading="eager"
|
||||
width={200}
|
||||
height={200}
|
||||
className="size-20 rounded-full border-4 border-white object-cover shadow-md transition group-hover:opacity-80"
|
||||
|
||||
+6
-5
@@ -1,16 +1,17 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const { hostname: supabaseHostname } = new URL(
|
||||
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
||||
)
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
basePath: process.env.BASE_PATH,
|
||||
allowedDevOrigins: ["100.64.0.10"],
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "supabase.pascalyazid.com",
|
||||
port: "",
|
||||
pathname: "/storage/v1/object/sign/avatars/**",
|
||||
hostname: supabaseHostname,
|
||||
pathname: '/storage/v1/object/**',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user