I'm following a simple tutorial, and for some reason the logs aren't being printed while inside docker (using standalone build).
Am I missing something?
import { prisma } from "@/db";
import Link from "next/link";
export default async function Home() {
console.log("hello")
const todos = await prisma.todo.findMany()
console.log(todos)
return (<>
<header className="flex justify-between items-center mb-4">
<h1 className="text-4xl font-bold">Todos</h1>
<Link href="new" className="border px-2 py-1 rounded">New</Link>
</header>
<ul className="pl-4">
{todos.map(todo => (
<li key={todo.id} className="mb-2">
<Link href={`http://localhost:3000/${todo.id}`} className="border px-2 py-1 rounded">
{todo.title}
</Link>
</li>
))}
</ul>
</>)
}
The UI renders normally, buttons work - but for some reason the JS isn't being ran.