Files
portfolio/next.config.ts
T

27 lines
619 B
TypeScript
Raw Normal View History

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';
2026-05-18 21:40:10 +03:00
const pbPort = process.env.PB_PORT ?? '8090';
const nextConfig: NextConfig = {
output: 'standalone',
2026-05-18 21:40:10 +03:00
poweredByHeader: false,
images: {
remotePatterns: [
{
protocol: 'http',
hostname: pbHostname,
2026-05-18 21:40:10 +03:00
port: pbPort,
pathname: '/api/files/**',
},
],
},
experimental: {
viewTransition: true,
},
};
export default nextConfig;