2026-05-07 12:28:42 +03:00
|
|
|
import type { NextConfig } from 'next';
|
|
|
|
|
|
2026-05-18 21:34:25 +03:00
|
|
|
/* 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';
|
2026-04-18 14:52:39 +03:00
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-05-18 21:34:25 +03:00
|
|
|
output: 'standalone',
|
2026-05-18 21:40:10 +03:00
|
|
|
poweredByHeader: false,
|
2026-05-18 21:34:25 +03:00
|
|
|
images: {
|
|
|
|
|
remotePatterns: [
|
|
|
|
|
{
|
|
|
|
|
protocol: 'http',
|
|
|
|
|
hostname: pbHostname,
|
2026-05-18 21:40:10 +03:00
|
|
|
port: pbPort,
|
|
|
|
|
pathname: '/api/files/**',
|
2026-05-18 21:34:25 +03:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-05-12 16:10:50 +03:00
|
|
|
experimental: {
|
|
|
|
|
viewTransition: true,
|
|
|
|
|
},
|
2026-05-07 12:28:42 +03:00
|
|
|
};
|
2026-04-18 14:52:39 +03:00
|
|
|
|
2026-05-07 12:28:42 +03:00
|
|
|
export default nextConfig;
|