You're seeing the raw index.html,
which means Cloudflare is serving the project source instead of the built output.
dist,
build command to npm run build, then redeploy.
dist after running
npm install && npm run build — never the project root.
See TROUBLESHOOTING.md, or open /api/health to check whether Functions are running.