teqo-backup/next.config.mjs
2026-03-15 13:46:44 -03:00

16 lines
504 B
JavaScript

import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const basePath = process.env.NEXT_BASE_PATH || ''
const assetPrefix = process.env.NEXT_ASSET_PREFIX || undefined
const allowedImageHost = process.env.NEXT_PUBLIC_SITE_URL || 'https://jorgesolla.com.br'
const nextConfig = {
basePath,
assetPrefix,
images: {
remotePatterns: [new URL(`${allowedImageHost}/**`)],
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false })