build: prepare Next.js standalone output and Payload Postgres adapter for Coolify deployment

This commit is contained in:
MichalC
2026-09-19 11:45:54 +02:00
parent c8193cf166
commit 65994439d7
4 changed files with 35 additions and 6 deletions
+4 -5
View File
@@ -1,4 +1,5 @@
import { sqliteAdapter } from '@payloadcms/db-sqlite'
import { postgresAdapter } from '@payloadcms/db-postgres'
import { mcpPlugin } from '@payloadcms/plugin-mcp'
import { seoPlugin } from '@payloadcms/plugin-seo'
import { ipalKit, panelSmtpAdapter } from '@intecion/ipal-kit'
@@ -33,11 +34,9 @@ export default buildConfig({
typescript: {
outputFile: path.resolve(dirname, 'payload-types.ts'),
},
db: sqliteAdapter({
client: {
url: process.env.DATABASE_URI || '',
},
}),
db: process.env.DATABASE_URI?.startsWith('postgres')
? postgresAdapter({ pool: { connectionString: process.env.DATABASE_URI }, push: false })
: sqliteAdapter({ client: { url: process.env.DATABASE_URI || '' } }),
sharp,
localization: {
locales: i18n.locales.map(l => l.code),