ci/cd: configure automated Docker builds on Gitea and Portainer deployment
Build and Deploy / build-and-push (push) Successful in 2m39s
Build and Deploy / build-and-push (push) Successful in 2m39s
This commit is contained in:
1 parent
7a84480d70
commit
eb29528aad
11 files changed
+82
-25
No files matched your search
+16
-8
@@ -1,16 +1,24 @@
|
||||
import type { NextConfig } from "next";
|
||||
import type { NextConfig } from 'next';
|
||||
|
||||
const getHostname = (urlStr: string | undefined): string | null => {
|
||||
if (!urlStr || urlStr.trim() === '') return null;
|
||||
try {
|
||||
return new URL(urlStr).hostname;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const supabaseHostname = getHostname(process.env.NEXT_PUBLIC_SUPABASE_URL);
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
basePath: process.env.BASE_PATH,
|
||||
allowedDevOrigins: ["100.64.0.10"],
|
||||
output: 'standalone',
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "supabase.pascalyazid.com",
|
||||
port: "",
|
||||
pathname: "/storage/v1/object/sign/avatars/**",
|
||||
protocol: 'https',
|
||||
hostname: supabaseHostname ?? '**.supabase.co',
|
||||
pathname: '/storage/v1/object/**',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user