mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-12 22:13:05 +00:00
prepare project to deploy on server host
This commit is contained in:
parent
f804da60eb
commit
288ada421f
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
|||
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('https://jorgesolla.com.br/**')],
|
||||
remotePatterns: [new URL(`${allowedImageHost}/**`)],
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue