<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Server Actions on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/server-actions/</link><description>Recent content in Server Actions on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 25 Oct 2025 02:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/server-actions/index.xml" rel="self" type="application/rss+xml"/><item><title>Intermediate Concepts: Server Actions, Proxy, and API Routes</title><link>https://ai-blog.noorshomelab.dev/nextjs-guide/intermediate-server-actions-proxy-api-routes/</link><pubDate>Sat, 25 Oct 2025 02:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/nextjs-guide/intermediate-server-actions-proxy-api-routes/</guid><description>&lt;h2 id="5-intermediate-concepts-server-actions-proxy-and-api-routes"&gt;5. Intermediate Concepts: Server Actions, Proxy, and API Routes&lt;/h2&gt;
&lt;p&gt;Next.js empowers you to build full-stack applications by providing robust server-side capabilities. In this chapter, we&amp;rsquo;ll explore three key features: &lt;strong&gt;Server Actions&lt;/strong&gt; (for direct server-side data mutations), the &lt;strong&gt;&lt;code&gt;proxy.ts&lt;/code&gt; file&lt;/strong&gt; (which replaced &lt;code&gt;middleware.ts&lt;/code&gt; for network boundary concerns), and &lt;strong&gt;API Routes&lt;/strong&gt; (for building traditional API endpoints).&lt;/p&gt;
&lt;h3 id="51-server-actions-direct-server-side-mutations"&gt;5.1 Server Actions: Direct Server-Side Mutations&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Server Actions&lt;/strong&gt; are a groundbreaking feature in Next.js (part of React 19&amp;rsquo;s capabilities) that allow you to define server-side functions and invoke them directly from your Client Components or Server Components. This significantly simplifies data mutations and form handling by eliminating the need to manually create API endpoints for every mutation.&lt;/p&gt;</description></item></channel></rss>