Lộ trình cho người muốn ship API hoặc tool mà không quản máy chủ. Đọc bài kiến thức, rồi làm lab hub, rồi lab chính thức nếu có.A path for people who want to ship an API or a tool without running a server. Read the knowledge lesson, do the hub lab, then the official lab when one exists.ផ្លូវសម្រាប់អ្នកចង់ ship API ឬ tool ដោយមិនដំណើរការ server។ អានមេរៀនចំណេះដឹង រួចធ្វើ lab hub រួច lab ផ្លូវការ បើមាន។
Worker lỗi thì không có máy chủ để SSH vào. Bạn xem log. Form public cần Turnstile, và token phải được kiểm tra trên server trước khi ghi D1.When a Worker fails, there is no server to SSH into. You read the logs. A public form needs Turnstile, and the token must be checked on the server before you write to D1.When a Worker fails, there is no server to SSH into. You read the logs. A public form needs Turnstile, and the token must be checked on the server before you write to D1.
Cách hoạt độngHow it worksHow it works
`wrangler tail` hiện log lúc bạn gọi API. Dashboard cũng có log. Turnstile hiện thử thách trên form. Server gửi token đó tới Cloudflare. Chỉ khi Cloudflare nói token hợp lệ thì mới INSERT.`wrangler tail` prints logs while you call the API. The dashboard has logs too. Turnstile shows a check on the form. The server sends that token to Cloudflare. Only when Cloudflare says the token is valid do you INSERT.`wrangler tail` prints logs while you call the API. The dashboard has logs too. Turnstile shows a check on the form. The server sends that token to Cloudflare. Only when Cloudflare says the token is valid do you INSERT.
Kiến trúcArchitectureArchitecture
Widget trên trang chỉ là nửa đầu. Ai cũng có thể POST thẳng vào API và bỏ qua widget. Nhánh kiểm tra nằm trong Worker hoặc Function, cạnh câu lệnh ghi database.The widget on the page is only the first half. Anyone can POST straight to the API and skip the widget. The check belongs in the Worker or Function, next to the database write.The widget on the page is only the first half. Anyone can POST straight to the API and skip the widget. The check belongs in the Worker or Function, next to the database write.
Khi nào dùngWhen to use itWhen to use it
Bật log trước khi đoán lỗi. Thêm Turnstile khi form ghi dữ liệu thật: đăng ký, liên hệ, OTP.Turn logs on before you guess at a bug. Add Turnstile when a form writes real data: signup, contact, OTP.Turn logs on before you guess at a bug. Add Turnstile when a form writes real data: signup, contact, OTP.
Khi nào không dùngWhen not to use itWhen not to use it
Đừng coi widget là đủ. Đừng tắt log trên production rồi mới hỏi vì sao API im.Do not treat the widget as enough. Do not turn logs off in production and then ask why the API is silent.Do not treat the widget as enough. Do not turn logs off in production and then ask why the API is silent.
Gói và giới hạnPlans and limitsPlans and limits
Workers Logs có trên Free và Paid. Đến 1 tháng 12 năm 2026, Free là 200.000 sự kiện/ngày, giữ 3 ngày. Sau ngày đó docs chuyển sang giá Observability. Turnstile dùng được trên mọi gói, không tính phí widget. Tài khoản Free được 20 widget. Nguồn: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/Workers Logs exist on Free and Paid. Until 1 December 2026, Free is 200,000 events per day, kept for 3 days. After that, the docs switch to Observability pricing. Turnstile is available on all plans at no cost for the widget. A Free account can have 20 widgets. Sources: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/Workers Logs exist on Free and Paid. Until 1 December 2026, Free is 200,000 events per day, kept for 3 days. After that, the docs switch to Observability pricing. Turnstile is available on all plans at no cost for the widget. A Free account can have 20 widgets. Sources: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/
Không phải báo giá. Đối chiếu docs và dashboard. Kiểm tra lần cuối: 2026-11-11.Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11.Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11.
Thuật ngữGlossaryGlossary
wrangler tailwrangler tailwrangler taili
Lệnh xem log Worker đang chạy, gần như xem trực tiếp.The command that shows logs from a running Worker, close to live.The command that shows logs from a running Worker, close to live.
SiteverifySiteverifySiteverifyi
Bước server hỏi Cloudflare xem token Turnstile có thật không.The server step that asks Cloudflare whether a Turnstile token is real.The server step that asks Cloudflare whether a Turnstile token is real.
Lab nằm ở bài riêng. Đọc ý chính trước, rồi mở lab.Labs live on their own pages. Read the main ideas, then open a lab.Labs live on their own pages. Read the main ideas, then open a lab.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
Trong phần 2, Kristian mở rộng trên môi trường hiện có được xây dựng trong phần 1, bằng cách cho bạn thấy cách tích hợp các mô hình AI mới và giới thiệu các thông số mới cho phép bạn tùy chỉnh cách images được tạo ra.
In part 2, Kristian expands upon the existing environment built in part 1, by showing you how to integrate new AI models and introduce new parameters that allow you to customize how images are generated.
នៅក្នុងផ្នែកទី 2 Kristian ពង្រីកលើបរិស្ថានដែលមានស្រាប់ដែលបានសាងសង់ក្នុងផ្នែកទី 1 ដោយបង្ហាញអ្នកពីរបៀបបញ្ចូលគំរូ AI ថ្មី និងណែនាំប៉ារ៉ាម៉ែត្រថ្មីដែលអនុញ្ញាតឱ្យអ្នកប្ដូរតាមបំណងពីរបៀបដែល images ត្រូវបានបង្កើត។
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.