The custom server.ts only had the React Router request handler — static assets in build/client/ were never served, causing 404s for all JS/CSS in production. Add a static file handler with path traversal protection and immutable caching for hashed assets. Verified locally: HTML 200, assets 200, Cache-Control: immutable on /assets/*. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| Dockerfile | ||
| package.json | ||
| react-router.config.ts | ||
| server.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||