These were the steps I took (straight from your readme)
npm create next-app@latest
npx vinext init
Then I tried to deploy.
Issues that I encountered that were not specified in the readme:
- I needed a CLOUDFLARE_API_TOKEN. Sure. But what permissions? I went with "edit workers" template. Please make this more clear in the readme
API error reaching /memberships -> I needed to add my account ID to wrangler.jsonc. I only found out after googling this error. This step is missing in the readme
- Build failed: Could not resolve "virtual:vinext-rsc-entry". Had to ask AI for this one. It updated my
vite.config.ts file to this
import vinext from "vinext";
import { defineConfig } from "vite";
import { cloudflare } from "@cloudflare/vite-plugin";
export default defineConfig({
plugins: [
vinext(),
cloudflare({
viteEnvironment: { name: "rsc", childEnvironments: ["ssr"] },
}),
],
});
After that, my deploy finally worked.
I don't know if all of this is the recommended path, so I won't make a PR. But please make the initial deploy docs better ❤️
These were the steps I took (straight from your readme)
npm create next-app@latestnpx vinext initThen I tried to deploy.
Issues that I encountered that were not specified in the readme:
API error reaching /memberships-> I needed to add my account ID to wrangler.jsonc. I only found out after googling this error. This step is missing in the readmevite.config.tsfile to thisAfter that, my deploy finally worked.
I don't know if all of this is the recommended path, so I won't make a PR. But please make the initial deploy docs better ❤️