mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
16 lines
504 B
JavaScript
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 })
|