Skip to content

Commit 75b5322

Browse files
author
melodyyyang
committed
feat(doc): Add EdgeOne Pages deploy Pages
1 parent 174be10 commit 75b5322

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/start/framework/react/guide/hosting.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Once you've chosen a deployment target, you can follow the deployment guidelines
2323
- [`node-server`](#nodejs--docker): Deploy to a Node.js server
2424
- [`bun`](#bun): Deploy to a Bun server
2525
- [`appwrite-sites`](#appwrite-sites): Deploy to Appwrite Sites
26+
- [`edgeone-pages`](#edgeone-pages): Deploy to EdgeOne Pages
2627
- ... and more to come!
2728

2829
### Cloudflare Workers ⭐ _Official Partner_
@@ -444,3 +445,48 @@ In your Appwrite project, navigate to the **Sites** page from the sidebar. Click
444445
5. Click **Deploy**
445446

446447
After successful deployment, click the **Visit site** button to see your deployed application.
448+
449+
### EdgeOne Pages
450+
451+
<a href="https://pages.edgeone.ai" alt="EdgeOne Pages Logo">
452+
<picture>
453+
<source media="(prefers-color-scheme: dark)" srcset="https://pages.edgeone.ai/_next/static/media/WhiteHeadLogo.51cd0d20.svg?auto=format&fit=max&w=3840" width="280">
454+
<source media="(prefers-color-scheme: light)" srcset="https://pages.edgeone.ai/_next/static/media/BlackHeadLogo.65710e40.svg?auto=format&fit=max&w=3840" width="280">
455+
<img alt="EdgeOne Pages logo" src="https://pages.edgeone.ai/_next/static/media/BlackHeadLogo.65710e40.svg?auto=format&fit=max&w=3840" width="280">
456+
</picture>
457+
</a>
458+
459+
To deploy TanStack Start on EdgeOne Pages, follow the steps below:
460+
461+
1. Install the EdgeOne adapter
462+
463+
```bash
464+
pnpm add @edgeone/tanstack-start
465+
```
466+
467+
2. Configure Vite
468+
469+
```ts
470+
// vite.config.ts
471+
import { defineConfig } from 'vite'
472+
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
473+
import viteReact from '@vitejs/plugin-react'
474+
import edgeoneAdapter from '@edgeone/tanstack-start'
475+
476+
export default defineConfig({
477+
plugins: [tanstackStart(), viteReact(), edgeoneAdapter()],
478+
})
479+
```
480+
481+
3. Deploy
482+
483+
Push your code to GitHub or GitLab, then connect your repository in EdgeOne Pages. Alternatively, use EdgeOne CLI to deploy directly:
484+
485+
```bash
486+
edgeone pages deploy
487+
```
488+
489+
EdgeOne Pages supports SSR, SSG, SPA, route loaders, server functions, file-based routing, and streaming.
490+
491+
For more details, visit the [EdgeOne Pages TanStack Start documentation](https://pages.edgeone.ai/zh/document/framework-tanstack-start).
492+

0 commit comments

Comments
 (0)