teqo-backup/next.config.mjs
2026-03-14 18:50:44 -03:00

16 lines
485 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 || basePath || undefined
const allowedImageHost = process.env.NEXT_PUBLIC_SITE_URL
const nextConfig = {
basePath,
assetPrefix,
images: {
remotePatterns: [new URL(`${allowedImageHost}/**`)],
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false })