From fb6b2281eac68f082bda527c2d11b9c727221c36 Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Sat, 28 Nov 2026 13:08:22 +0800 Subject: [PATCH] docs: connect to Cloudflare before framework deploys --- docs/integrations/frameworks/analog.md | 4 +++- docs/integrations/frameworks/astro.md | 11 ++++++++++- docs/integrations/frameworks/nuxt.md | 4 +++- docs/integrations/frameworks/react-router.md | 4 +++- docs/integrations/frameworks/sveltekit.md | 4 +++- docs/integrations/frameworks/tanstack-start.md | 4 +++- 6 files changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/integrations/frameworks/analog.md b/docs/integrations/frameworks/analog.md index 193fce611..48b10dd6d 100644 --- a/docs/integrations/frameworks/analog.md +++ b/docs/integrations/frameworks/analog.md @@ -72,10 +72,12 @@ export default defineConfig({ ### 5. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + ## Using Void Features Most [Void platform features](../../guide/app-types.md#void-apps) work with Analog. Use them in page server loaders, actions, and API routes: diff --git a/docs/integrations/frameworks/astro.md b/docs/integrations/frameworks/astro.md index fcf280b33..7d1669aa3 100644 --- a/docs/integrations/frameworks/astro.md +++ b/docs/integrations/frameworks/astro.md @@ -62,10 +62,19 @@ export default defineConfig({ ### 5. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + +On your own Cloudflare account, Void deploys an Astro app as a Worker, and Astro only builds one when a route sets `export const prerender = false` or `output` is `'server'`. If every page is prerendered, which is Astro's default, build the site and deploy its files instead: + +```bash +npm run build +void deploy --dir dist/client +``` + ## Using Void Features Most [Void platform features](../../guide/app-types.md#void-apps) work with Astro in both local dev and production when using Astro 7+ with `nodejs_als`. diff --git a/docs/integrations/frameworks/nuxt.md b/docs/integrations/frameworks/nuxt.md index ad589a4aa..8ac309960 100644 --- a/docs/integrations/frameworks/nuxt.md +++ b/docs/integrations/frameworks/nuxt.md @@ -70,10 +70,12 @@ export default defineConfig({ ### 5. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + ## Using Void Features Most [Void platform features](../../guide/app-types.md#void-apps) work with Nuxt. Use them in server routes, API handlers, and middleware: diff --git a/docs/integrations/frameworks/react-router.md b/docs/integrations/frameworks/react-router.md index d5979de57..d935681a1 100644 --- a/docs/integrations/frameworks/react-router.md +++ b/docs/integrations/frameworks/react-router.md @@ -42,10 +42,12 @@ For React Router v7, set `future.v8_viteEnvironmentApi` to `true` in `react-rout ### 4. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + If you use React Router 8 and `react-router.config.ts` sets `prerender`, tell Void to build with React Router's CLI: ```ts diff --git a/docs/integrations/frameworks/sveltekit.md b/docs/integrations/frameworks/sveltekit.md index 6d76ccee8..0984f6765 100644 --- a/docs/integrations/frameworks/sveltekit.md +++ b/docs/integrations/frameworks/sveltekit.md @@ -79,10 +79,12 @@ Run `void prepare` after a fresh clone or before typechecking in CI so `.void/ts ### 6. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + ## Using Void Features Most [Void platform features](../../guide/app-types.md#void-apps) work with SvelteKit. Use them in server load functions, actions, and API routes: diff --git a/docs/integrations/frameworks/tanstack-start.md b/docs/integrations/frameworks/tanstack-start.md index 57cdf3f88..757f4f710 100644 --- a/docs/integrations/frameworks/tanstack-start.md +++ b/docs/integrations/frameworks/tanstack-start.md @@ -42,10 +42,12 @@ export default defineConfig({ ### 4. Deploy ```bash -void auth login +void connect --platform cloudflare void deploy ``` +`void connect` signs you in to Cloudflare, asks which account to use, and saves it as the deploy target. To deploy to a Void platform run by your team instead, see [Deployment](../../guide/deployment.md). + ## Using Void Features Most [Void platform features](../../guide/app-types.md#void-apps) work with TanStack Start. Use them in server functions: