mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
27 lines
553 B
TypeScript
27 lines
553 B
TypeScript
import db, { defineTable, column } from '@astrojs/db';
|
|
import { defineConfig } from 'astro/config';
|
|
import { themes } from './themes-integration';
|
|
|
|
const Author = defineTable({
|
|
columns: {
|
|
name: column.text(),
|
|
},
|
|
});
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [db(), themes()],
|
|
db: {
|
|
tables: { Author },
|
|
unsafeDisableStudio: true,
|
|
async data({ seed }) {
|
|
await seed(Author, [
|
|
{ name: 'Ben' },
|
|
{ name: 'Nate' },
|
|
{ name: 'Erika' },
|
|
{ name: 'Bjorn' },
|
|
{ name: 'Sarah' },
|
|
]);
|
|
},
|
|
},
|
|
});
|