feat: add poweredByHeader: false
This commit is contained in:
+4
-2
@@ -3,16 +3,18 @@ import type { NextConfig } from 'next';
|
|||||||
/* PocketBase origin — used to allowlist remote images.
|
/* PocketBase origin — used to allowlist remote images.
|
||||||
* PB_HOSTNAME and PB_PORT are server-only env vars; safe to read here. */
|
* 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 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 = {
|
const nextConfig: NextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
|
poweredByHeader: false,
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
hostname: pbHostname,
|
hostname: pbHostname,
|
||||||
port: String(pbPort),
|
port: pbPort,
|
||||||
|
pathname: '/api/files/**',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user