Skip to content

Commit

Permalink
Pipeline V
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Jun 15, 2024
1 parent 272d1d6 commit 7bff184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'path';
import {fileURLToPath} from 'url';
import {postgresAdapter} from '@payloadcms/db-postgres';
import {slateEditor} from '@payloadcms/richtext-slate';
import {PHASE_PRODUCTION_BUILD} from 'next/constants';
import {buildConfig, type Config} from 'payload/config';
import sharp from 'sharp';
import {Features} from './app/(payload)/collections/features';
Expand Down Expand Up @@ -30,6 +31,8 @@ const config: Config = {
},
},
onInit: async (payload) => {
if (process.env.NEXT_PHASE === PHASE_PRODUCTION_BUILD) return;

// TODO wait for drizzle to resolve this and run migrations prior to JS container
// https://github.com/drizzle-team/drizzle-orm/issues/819
// await payload.db.migrate();
Expand Down

0 comments on commit 7bff184

Please sign in to comment.