Files
portfolio/next.config.ts
T
2026-05-21 18:01:03 +03:00

25 lines
552 B
TypeScript

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 nextConfig: NextConfig = {
output: 'standalone',
poweredByHeader: false,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: pbHostname,
pathname: '/api/files/**',
},
],
},
experimental: {
viewTransition: true,
},
};
export default nextConfig;