本文へスキップ
記事初級

Vite プラグインで API 付き React SPA を作る

Vite + React のシングルページアプリを Cloudflare Vite プラグインに対応させ、API Worker を追加します。

最終更新
2026年9月5日
元の記事を読む

この紹介文は現在英語版のみです。

This tutorial walks through adapting a Vite project to use the Cloudflare Vite plugin, so your React SPA and its API run together on Cloudflare Workers. Most steps also apply to existing Vite projects and other front-end frameworks.

What you’ll learn

  • Set up and configure a React SPA with the Cloudflare Vite plugin
  • Add an API Worker that the front end calls

Cloudflare products used

Workers, Cloudflare Vite plugin.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

さらに学ぶ