build: prepare Next.js standalone output and Payload Postgres adapter for Coolify deployment
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user