prod
This commit is contained in:
+5
-1
@@ -1,10 +1,14 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const minioHost = process.env.MINIO_PUBLIC_URL ? new URL(process.env.MINIO_PUBLIC_URL).hostname : "localhost";
|
||||
const minioPort = process.env.MINIO_PUBLIC_URL ? new URL(process.env.MINIO_PUBLIC_URL).port : undefined;
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
hostname: "**",
|
||||
hostname: minioHost,
|
||||
...(minioPort ? { port: minioPort } : {}),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user