From 3f0837d920ba67496c5fc7f50485aed84b37d05e Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 10 Jul 2025 13:55:01 +0200 Subject: Simplify code' --- src/pages/index.astro | 277 ++++++++------------------------------------------ 1 file changed, 42 insertions(+), 235 deletions(-) (limited to 'src/pages/index.astro') diff --git a/src/pages/index.astro b/src/pages/index.astro index 363e843..ae53624 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,267 +7,74 @@ - -
A persistent counter demonstrating Durable Objects with Astro and Cloudflare Workers
- -This demo showcases a Cloudflare Durable Object that maintains a persistent counter. The counter state survives across requests, deployments, and server restarts.
- -GET /api/counter - Retrieve the current counter valuePOST /api/counter - Increment the counter by 1POST /api/counter?action=reset - Reset the counter to 0A simple persistent counter using Durable Objects.
+ +How it works: The counter value is stored in a Durable Object and persists across deployments.
+ -