0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/db/test/fixtures/basics/astro.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
498 B
TypeScript
Raw Normal View History

2024-01-11 15:05:12 -05:00
import { defineConfig } from 'astro/config';
import db, { defineCollection, field } from '@astrojs/db';
const Author = defineCollection({
fields: {
name: field.text(),
},
2024-01-12 15:47:17 -05:00
source: 'local',
2024-01-11 15:05:12 -05:00
data() {
return [
{
name: 'Ben',
},
{
name: 'Nate',
},
{
name: 'Erika',
},
{
name: 'Bjorn',
},
{
name: 'Sarah',
},
]
}
})
// https://astro.build/config
export default defineConfig({
integrations: [db()],
db: {
2024-01-12 15:47:17 -05:00
collections: { Author },
2024-01-11 15:05:12 -05:00
}
});