Add a React form with Formspree
/pages/tutorials/add-a-react-form-with-formspree
Mở tutorial / guide ↗ Open tutorial / guide ↗Phần 1: Deploy đầu tiên với Pages Part 1: First deploy with Pages · Bài 2/2 Lesson 2/2
Đặt build command (`npm run build`) và thư mục output (`dist`). Kiểm tra biến môi trường cho API URL. Set build command (`npm run build`) and output directory (`dist`). Check env vars for API URLs.
Sai output directory là lỗi #1 Pages — Astro dùng `dist`, Create React App dùng `build`. Wrong output directory is the #1 Pages mistake — Astro uses `dist`, CRA uses `build`.
Secret (API key, token) không được đặt trong wrangler config hay source — dùng `wrangler secret put`. Biến không nhạy cảm đặt trong `vars`; local dev dùng `.env` và thêm vào `.gitignore`. Secrets (API keys, tokens) must never appear in Wrangler config or source — use `wrangler secret put`. Non-sensitive config belongs in `vars`; use a `.env` file for local dev and add it to `.gitignore`.
Nguồn: Source: Workers Best Practices Workers Best Practices ↗
Tutorial, solution guide và reference từ developers.cloudflare.com/resources ↗ — gợi ý theo chủ đề bài học. Tutorials, solution guides, and reference docs from developers.cloudflare.com/resources ↗ — matched to this lesson topic.
/pages/tutorials/add-a-react-form-with-formspree
Mở tutorial / guide ↗ Open tutorial / guide ↗/pulumi/tutorial/add-site
Mở tutorial / guide ↗ Open tutorial / guide ↗/pages/tutorials/add-an-html-form-with-formspree
Mở tutorial / guide ↗ Open tutorial / guide ↗/workers-ai/guides/tutorials/image-generation-playground/image-generator-flux-newmodels
Mở tutorial / guide ↗ Open tutorial / guide ↗