Skip to content

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

Open
@alexturpin

Description

@alexturpin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions