11 पॉइंट द्वारा xguru 2021-11-18 | 1 टिप्पणियां | WhatsApp पर शेयर करें
  • Cloudflare Workers को Backend के रूप में इस्तेमाल करने के लिए विस्तार

→ पहले भी integration संभव था, लेकिन अब serverless functions को Pages project में साथ ही develop और deploy किया जा सकता है

./functions फ़ोल्डर में hello.js रखने पर इसे /hello के रूप में कॉल किया जा सकता है

→ commit के समय Worker अपने-आप deploy होता है और URL mapping की जाती है

  • Workers में इस्तेमाल होने वाले bindings वैसे ही उपलब्ध

→ KV namespace

→ Durable Object namespace

→ R2 (S3-compatible) सपोर्ट जल्द आने वाला है

→ environment variables

→ Secret सपोर्ट जल्द आने वाला है : encrypted environment variables

  • SvelteKit integration सपोर्ट

  • Server-Side Rendering का उपयोग संभव

  • पहले से विकसित Worker को ES module के रूप में बनाकर सीधे attach किया जा सकता है

1 टिप्पणियां

 
xguru 2021-11-18