Sets up a Vite MPA project with Cloudflare. Demonstrates Vitest unit tests and integration tests using PlayWright against 'vite preview' started application that is served from production build.
- Vite-based MPA structure.
- Copies to output also HTML files that are not linked to root.
- Processes site urls (e.g. https://test.com/asset.jpg) in HTML meta tags and JSON-LD so that they too have hash-components in file names for cache-busting.
- Cloudflare integration.
- Vitest unit testing with Cloudflare.
- Playwright integration tests against production build with Cloudflare.
npm install
npm run test
npm run build
npm run integration-test- Code coverage does not work yet: cloudflare/workers-sdk#5266.