Buckets:
| import postgres from "postgres"; | |
| import { AddForm } from "@/app/add-form"; | |
| import { DeleteForm } from "@/app/delete-form"; | |
| let sql = postgres(process.env.DATABASE_URL || process.env.POSTGRES_URL!, { | |
| ssl: "allow", | |
| }); | |
| export default async function Home() { | |
| let todos = await sql`SELECT * FROM todos`; | |
| return ( | |
| <main> | |
| <h1 className="sr-only">Todos</h1> | |
| <AddForm /> | |
| <ul> | |
| {todos.map((todo) => ( | |
| <li key={todo.id}> | |
| {todo.text} | |
| <DeleteForm id={todo.id} todo={todo.text} /> | |
| </li> | |
| ))} | |
| </ul> | |
| </main> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 600 Bytes
- Xet hash:
- dc30cc19876945bd93af7d0efda6c7c1582bdc9cf15e3186cc00d1df49cc7fba
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.