Repository navigation
VR1: the Vite and React app on Workers - #2
Merged
Merged
Conversation
Vercel's Vite and React example (vercel/examples framework-boilerplates/vite-react at de86723: create-vite's React and TypeScript template) in apps/web, on the template's own Vite 5 and React 18, which build and run on Node 22, so nothing moves. The welcome page (the Vite and React logos linking to their docs, the counter, the HMR hint), its styles, entry, shell, tsconfigs and ESLint config are the template's; the app's name is one seam (src/site.ts SITE_NAME = "Vite + React", the template's heading) that the heading reads and a small plugin in vite.config.ts writes, HTML-escaped, into index.html's title. wrangler.jsonc serves dist as Workers Static Assets with single-page-application routing, and worker/index.ts (angular-boilerplate's) answers what the assets leave: a 404 for a path that names a file, the app for any other page; tsconfig.worker.json checks it as a third project reference. component.yaml is the deploy contract, with a smoke over the shell, the bundle carrying the counter, a deep link and a missing file. The template ships no tests, so the page gains a Vitest spec (src/App.test.tsx, jsdom, the app's own Vite config: the heading, the logo links, the counter); tests/web (vitest): the seam and the title writer, the build config, the Worker's routing, the template's page and the licence. The README's How it maps to Vercel records every swap. Co-Authored-By: Claude <noreply@anthropic.com> Orun-Task: VR-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vercel's Vite and React example (vercel/examples framework-boilerplates/vite-react at de86723: create-vite's React and TypeScript template) in apps/web, on the template's own Vite 5 and React 18, which build and run on Node 22, so nothing moves. The welcome page (the Vite and React logos linking to their docs, the counter, the HMR hint), its styles, entry, shell, tsconfigs and ESLint config are the template's; the app's name is one seam (src/site.ts SITE_NAME = "Vite + React", the template's heading) that the heading reads and a small plugin in vite.config.ts writes, HTML-escaped, into index.html's title. wrangler.jsonc serves dist as Workers Static Assets with single-page-application routing, and worker/index.ts (angular-boilerplate's) answers what the assets leave: a 404 for a path that names a file, the app for any other page; tsconfig.worker.json checks it as a third project reference. component.yaml is the deploy contract, with a smoke over the shell, the bundle carrying the counter, a deep link and a missing file. The template ships no tests, so the page gains a Vitest spec (src/App.test.tsx, jsdom, the app's own Vite config: the heading, the logo links, the counter); tests/web (vitest): the seam and the title writer, the build config, the Worker's routing, the template's page and the licence. The README's How it maps to Vercel records every swap.
🤖 Generated with Claude Code