vite-plugin-cloudflare icon indicating copy to clipboard operation
vite-plugin-cloudflare copied to clipboard

Basic example with vite-plugin-ssr doesn't seem to work

Open alexturpin opened this issue 1 year ago • 6 comments

I've finally started integrating vite-plugin-ssr in my vite-plugin-cloudflare project and have been running into some issue.

Decided to take a step back and attempt the VPS example from this repo, but that doesn't seem to work either. I'm hoping I'm doing something wrong! I've got a copy of the example in this repo.

When running npm run dev and accessinh /, the page renders:

could not find index.html in your content namespace

And the console output is:

Error: [[email protected]][Wrong Usage] Cannot find production build. Did you to run `$ vite build`? If you did, then you may need to use `importBuild.cjs`, see https://vite-plugin-ssr.com/importBuild.cjs

Any idea what might be happening?

alexturpin avatar Apr 20 '23 21:04 alexturpin