fix: return 404 for missing TIPs#3
Conversation
|
Validation update:\n\n- Lockfile is up to date, resolution step is skipped . postinstall$ npm run gen:types
Generated public/robots.txt (https://tips.sh)
Proxy environment variables detected. We'll use your proxy for fetch requests. ✓ built in 1.26s ✓ built in 2.73s\n\nAll passed locally. I also tried to verify over HTTP, but the current Cloudflare Vite config requires a remote Wrangler session and fails without Cloudflare login: . |
|
Validation update:
All passed locally. I also tried pnpm preview to verify /1043 over HTTP, but the current Cloudflare Vite config requires a remote Wrangler session and fails without Cloudflare login: You must be logged in to use wrangler dev in remote mode. |
Missing TIPs currently throw a generic Error from the server function, which TanStack Start renders as a route error/500. This switches the missing-row path to TanStack Router's notFound() flow so unresolved TIP IDs return a 404 page/status.\n\nValidation: not run locally because Corepack could not fetch pnpm 10.33.0 from npm registry in this sandbox (ETIMEDOUT).