We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83aba6d commit 7aff21eCopy full SHA for 7aff21e
next.config.ts
@@ -1,13 +1,17 @@
1
import type { NextConfig } from "next";
2
import createNextIntlPlugin from "next-intl/plugin";
3
+import type { RemotePattern } from "next/dist/shared/lib/image-config";
4
5
+const photoUrl = new URL(
6
+ process.env.NEXT_PUBLIC_PHOTO_URL ?? "https://api.eventownik.solvro.pl",
7
+);
8
const nextConfig: NextConfig = {
9
images: {
10
remotePatterns: [
11
{
- protocol: "https",
- hostname: "api.eventownik.solvro.pl",
- },
12
+ protocol: photoUrl.protocol.replace(/:$/, ""),
13
+ hostname: photoUrl.hostname,
14
+ } as RemotePattern,
15
16
protocol: "https",
17
hostname: "www.gravatar.com",
0 commit comments