# Mongo seeds ## sysConfig helper Run `pnpm prisma:seed:box-admin:sys-config` from the repo root to upsert the singleton Mongo document `{ _id: -1 }` with `appConfig.imageCdn`. That script uses `ts-node -P tsconfig.seed.json prisma/mongo/seed-sys-config.ts`. As an alternative you can do: ``` mongosh --eval "db.sysConfig.updateOne({ _id: -1 }, { $set: { appConfig: { imageCdn: { s3: 'https://s3.ap-east-1.amazonaws.com/mybucket-imgs', local: 'https://ww.xczox.xyz/images' } } } }, { upsert: true, multi: false })" ```