fix: use https protocol in next config
This commit is contained in:
+1
-3
@@ -3,7 +3,6 @@ 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 = process.env.PB_PORT ?? '8090';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'standalone',
|
||||
@@ -11,9 +10,8 @@ const nextConfig: NextConfig = {
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'http',
|
||||
protocol: 'https',
|
||||
hostname: pbHostname,
|
||||
port: pbPort,
|
||||
pathname: '/api/files/**',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user