ACTION/routes/actions

Server Actions ('use server')

Exercises three Server Actions with React 19 useActionState: Web Crypto hashing, cookie mutation, and on-demand ISR path revalidation.

1. echoAction (Web Crypto SHA-256)
2. setDemoCookieAction (cookies().set)
Active cookie: (none)
3. revalidateIsrAction (revalidatePath)

Invokes revalidatePath("/routes/isr") from a Server Action and propagates x-nextcompile-revalidated-paths.