Cloudflare Pages รองรับฟูลสแตก
(blog.cloudflare.com)- ขยายให้สามารถใช้ Cloudflare Workers เป็นแบ็กเอนด์ได้
→ เดิมก็เชื่อมต่อกันได้อยู่แล้ว แต่ตอนนี้สามารถพัฒนาและดีพลอยฟังก์ชันแบบ serverless ไปพร้อมกับโปรเจ็กต์ Pages ได้
→ หากใส่ hello.js ไว้ในโฟลเดอร์ ./functions จะเรียกใช้งานได้ที่ /hello
→ เมื่อคอมมิต ระบบจะดีพลอย Worker อัตโนมัติและทำการแมป URL
- มีการให้ binding แบบเดียวกับที่ใช้ใน Workers
→ KV namespace
→ Durable Object namespace
→ มีแผนรองรับ R2 (เข้ากันได้กับ S3)
→ ตัวแปรสภาพแวดล้อม
→ มีแผนรองรับ Secret: ตัวแปรสภาพแวดล้อมที่เข้ารหัส
-
รองรับการเชื่อมต่อกับ SvelteKit
-
สามารถใช้ Server-Side Rendering ได้
-
Worker ที่พัฒนาไว้เดิมสามารถสร้างเป็น ES module แล้วแนบใช้งานได้ทันที
1 ความคิดเห็น
Cloudflare เปิดตัว Cloudflare Pages ที่ช่วยให้สร้างเว็บไซต์ที่รวดเร็วได้อย่างรวดเร็ว https://th.news.hada.io/topic?id=3418
เปิดตัว CloudFlare R2 Object Storage https://th.news.hada.io/topic?id=5100
CloudFlare เปิดเบต้า Durable Objects https://th.news.hada.io/topic?id=2930
CloudFlare เริ่มเบต้าเซิร์ฟเวอร์เลส Workers Unbound https://th.news.hada.io/topic?id=2543
วิธีที่ CloudFlare ทำให้เวลา cold start ของ Workers เป็น 0 https://th.news.hada.io/topic?id=2567
Cloudflare Workers เริ่มรองรับ Native Rust https://th.news.hada.io/topic?id=4986
Show GN: edge-yacht - เกมมัลติเพลเยอร์ที่ทำงานบน Cloudflare Workers https://th.news.hada.io/topic?id=5305