feat: filename compound index (#7651)

Allow a compound index to be used for upload collections via a
`filenameCompoundIndex` field. Previously, `filename` was always treated
as unique.

Usage:

```ts
{
  slug: 'upload-field',
   upload: {
     // Slugs to include in compound index
     filenameCompoundIndex: ['filename', 'alt'],
  },
}
```
This commit is contained in:
Elliot DeNolf
2024-08-13 13:55:10 -04:00
committed by GitHub
parent 6c0f99082b
commit 5fc9f76406
11 changed files with 186 additions and 48 deletions

View File

@@ -59,7 +59,7 @@ async function main() {
${chalk.white.bold(filtered.map((p) => p.name).join('\n'))}
`)
//execSync('pnpm build:all --output-logs=errors-only', { stdio: 'inherit' })
execSync('pnpm build:all --output-logs=errors-only', { stdio: 'inherit' })
header(`\n 📦 Packing all packages to ${dest}...`)