feature/excel #1
@@ -29,7 +29,8 @@ const dirname = path.dirname(filename);
|
|||||||
export default buildConfig({
|
export default buildConfig({
|
||||||
onInit: async (payload) => {
|
onInit: async (payload) => {
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
await payload.db.migrateUp();
|
// @ts-expect-error - migrate() exists on the adapter but might not be in the base type
|
||||||
|
await payload.db.migrate();
|
||||||
await seedDatabase(payload);
|
await seedDatabase(payload);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user