BlockerCode
adapter_missing_react_routerReact Router adapter is missing
What it means
The site is built with React Router, but the official adapter that prepares it for our servers is missing.
Why it stops the deploy
Without the adapter the build does not produce the part of the site that runs on the server, so the site will not go live. There is no need to move the site to another tool.
How to fix it
- Your agent adds the React Router adapter and sets it in the config file. It is a small change.
- Nothing else in the site changes.
- Run the check again.
Prompt for your agent
Copy it and paste it into your agent. It fixes the project, explains each step, and runs the check again.
DeployAI check found this in the project: React Router adapter is missing.
Keep React Router. Install @cloudflare/vite-plugin and wrangler as dev dependencies, add cloudflare({ viteEnvironment: { name: "ssr" } }) before reactRouter() in the vite.config plugins, add workers/app.ts that exports default { fetch } and passes each request to createRequestHandler(() => import("virtual:react-router/server-build")) from react-router, and add wrangler.jsonc with "main": "./workers/app.ts" and "compatibility_flags": ["nodejs_compat"]. Follow the official Cloudflare React Router template. Do not convert the site.
Explain your plan and wait for my approval before architectural changes. Do not remove features without asking.
Explain every step to me in simple words.
When done, run: npx deployai@latest check