remove unnecessary pages and files that came with the Vike init

This commit is contained in:
Avraham Sakal
2025-08-27 07:40:37 -04:00
parent 18411402f5
commit b11c34b660
14 changed files with 2 additions and 277 deletions
-19
View File
@@ -1,19 +0,0 @@
interface TodoItem {
text: string;
}
const todosDefault = [{ text: "Buy milk" }, { text: "Buy strawberries" }];
const database =
// We create an in-memory database.
// - We use globalThis so that the database isn't reset upon HMR.
// - The database is reset when restarting the server, use a proper database (SQLite/PostgreSQL/...) if you want persistent data.
// biome-ignore lint:
((
globalThis as unknown as { __database: { todos: TodoItem[] } }
).__database ??= { todos: todosDefault });
const { todos } = database;
export { todos };
export type { TodoItem };