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
+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