166ac4350f
Also adds DOCKER_BUILD env variable in prepare for moving out from github workflows
18 lines
406 B
TypeScript
18 lines
406 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const imageDomains = (process.env.IMAGE_DOMAINS ?? '').split(',').map((domain) => {
|
|
return new URL(domain)
|
|
})
|
|
|
|
const IS_DOCKER_BUILD = process.env.DOCKER_BUILD === 'true'
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: IS_DOCKER_BUILD ? 'standalone' : undefined,
|
|
reactStrictMode: true,
|
|
images: {
|
|
remotePatterns: imageDomains
|
|
}
|
|
}
|
|
|
|
module.exports = nextConfig
|