mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
chore: clean up astro.data
This commit is contained in:
parent
39b63a2e5a
commit
57a85cbdee
1 changed files with 3 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
||||||
/// <reference path="./src/env.d.ts" />
|
import { Ingredient, Recipe, defineData } from 'astro:db';
|
||||||
|
|
||||||
import { defineData, Ingredient, Recipe } from 'astro:db';
|
export default defineData(async ({ seed, mode }) => {
|
||||||
|
|
||||||
export default defineData(async ({ seed }) => {
|
|
||||||
const pancakes = await seed(Recipe, {
|
const pancakes = await seed(Recipe, {
|
||||||
title: 'Pancakes',
|
title: 'Pancakes',
|
||||||
description: 'A delicious breakfast',
|
description: 'A delicious breakfast treat',
|
||||||
});
|
});
|
||||||
|
|
||||||
seed(Ingredient, [
|
seed(Ingredient, [
|
||||||
|
|
Loading…
Add table
Reference in a new issue