chore: moves next config to typescript

Also adds DOCKER_BUILD env variable in prepare for moving out from github workflows
This commit is contained in:
2026-04-02 11:59:44 -06:00
parent ea498588e0
commit 166ac4350f
3 changed files with 17 additions and 16 deletions
+17
View File
@@ -0,0 +1,17 @@
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