teqo/next.config.mjs
Francisco Solla 21b3c00d96
Some checks failed
CI / static (push) Failing after 5s
CI / int (push) Failing after 4s
CI / build (push) Failing after 3s
CI / e2e (1) (push) Failing after 4s
CI / e2e (2) (push) Failing after 4s
CI / checks (push) Failing after 2s
CI / deploy (push) Has been skipped
CI / requeue (push) Failing after 4s
chore(deploy): prepara imagem standalone para homeserver
2026-08-16 01:52:11 -03:00

14 lines
496 B
JavaScript

import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const allowedImageHost = process.env.NEXT_PUBLIC_SITE_URL || 'https://jorgesolla.com.br'
const nextConfig = {
distDir: process.env.NEXT_DIST_DIR || '.next',
...(process.env.NEXT_OUTPUT_STANDALONE === '1' ? { output: 'standalone' } : {}),
images: {
remotePatterns: [new URL(`${allowedImageHost}/**`)],
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false })