22 lines
384 B
TypeScript
22 lines
384 B
TypeScript
import { CollectionConfig } from '../../../../src/collections/config/types';
|
|
import path from 'path';
|
|
|
|
const Uploads: CollectionConfig = {
|
|
slug: 'uploads',
|
|
upload: {
|
|
staticDir: path.resolve(__dirname, './uploads'),
|
|
},
|
|
fields: [
|
|
{
|
|
type: 'text',
|
|
name: 'text',
|
|
},
|
|
],
|
|
};
|
|
|
|
export const uploadsDoc = {
|
|
text: 'An upload here',
|
|
};
|
|
|
|
export default Uploads;
|