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