From d5ba77b4cead3abe7174a6bc4ac9d06212a8c118 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 18 May 2026 21:40:10 +0300 Subject: [PATCH] feat: add poweredByHeader: false --- next.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/next.config.ts b/next.config.ts index 9def4bf..486fb2f 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,16 +3,18 @@ import type { NextConfig } from 'next'; /* PocketBase origin — used to allowlist remote images. * PB_HOSTNAME and PB_PORT are server-only env vars; safe to read here. */ const pbHostname = process.env.PB_HOSTNAME ?? '127.0.0.1'; -const pbPort = parseInt(process.env.PB_PORT ?? '8090', 10); +const pbPort = process.env.PB_PORT ?? '8090'; const nextConfig: NextConfig = { output: 'standalone', + poweredByHeader: false, images: { remotePatterns: [ { protocol: 'http', hostname: pbHostname, - port: String(pbPort), + port: pbPort, + pathname: '/api/files/**', }, ], },