Add a file named vercel.json to your root folder (the same containing the quartz.config.ts file). The file should look like this:

{
  "cleanUrls": true
}