How to build for React + Vite + Cloudflare worker?
I am using this example provided by Cloudflare for Vite + React + Hono https://github.com/cloudflare/templates/tree/main/vite-react-template which works fine if I use it as-is.
But I need to change the static
So, I changed the
And, I also tried to change the vite config to add build from
But I need to change the static
index.html to index.tsx to serve the initial html by hono to add title, description, meta tags etc. based on the pathname.So, I changed the
index.html with index.tsxAnd, I also tried to change the vite config to add build from
import build from "@hono/vite-build/cloudflare-workers" but it doesn't work.GitHub
Templates for Cloudflare Workers. Contribute to cloudflare/templates development by creating an account on GitHub.