Fix incomplete session description - #22
Merged
MiguelsPizza merged 1 commit intoNov 9, 2025
Merged
Conversation
When using the Cloudflare Vite plugin, the dev script should use 'vite dev' instead of 'wrangler dev'. This allows the Vite plugin to integrate the dev server with the Workers runtime, serving both the React app AND the worker endpoints together. Using 'wrangler dev' directly only runs the worker code, which only handles /sse, /sse/*, and /mcp routes, returning 404 for the React app at /. Changes: - Update dev script from 'wrangler dev --port 8888' to 'vite dev' - Add dev:wrangler script as fallback for direct wrangler usage - The vanilla template is unaffected (it uses wrangler assets correctly) Fixes issue where templates return 404 for root path in development.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
mcp-ui-with-webmcp-my-mcp-server | 1262e1e | Nov 09 2025, 04:01 AM |
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.
When using the Cloudflare Vite plugin, the dev script should use 'vite dev' instead of 'wrangler dev'. This allows the Vite plugin to integrate the dev server with the Workers runtime, serving both the React app AND the worker endpoints together.
Using 'wrangler dev' directly only runs the worker code, which only handles /sse, /sse/*, and /mcp routes, returning 404 for the React app at /.
Changes:
Fixes issue where templates return 404 for root path in development.
Description
Type of Change
Related Issues
Fixes #
Related to #
Changes Made
Testing
Test Commands Run
Manual Testing
pnpm dev)pnpm build && preview)Screenshots
Checklist
pnpm test) and they passBreaking Changes
None
Additional Notes