<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[bunny.net Blog]]></title><description><![CDATA[Performance tips, updates, tricks and insights into our Content Delivery Network.]]></description><link>https://bunny.net/blog/</link><image><url>https://bunny.net/blog/favicon.png</url><title>bunny.net Blog</title><link>https://bunny.net/blog/</link></image><generator>Ghost 5.82</generator><lastBuildDate>Tue, 24 Nov 2026 15:52:53 GMT</lastBuildDate><atom:link href="https://bunny.net/blog/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Pull from any OCI registry on Magic Containers]]></title><description><![CDATA[If your registry speaks the OCI Distribution spec, Magic Containers can pull from it.]]></description><link>https://bunny.net/blog/bring-your-own-registry-any-oci-registry-on-magic-containers/</link><guid isPermaLink="false">6b0303678b5fed851dd54488</guid><category><![CDATA[Compute]]></category><dc:creator><![CDATA[Francisco de Borja Aranda Castillejo]]></dc:creator><pubDate>Tue, 24 Nov 2026 13:40:00 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/Bunny-magic-container-center.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/Bunny-magic-container-center.png" alt="Pull from any OCI registry on Magic Containers"><p>Your images live where your team already pushes them. Until now, Magic Containers was very opinionated and was compatible only with a few well-known registries, so anything else meant mirroring images somewhere we supported. </p><p>While this helped stabilize and secure the early experience, we ultimately believe in making our products as accessible as possible and avoiding vendor lock-in.</p><p>Now that we&apos;ve made substantial improvements to Magic Containers over these past months, we&apos;re happy to share that this extra mirroring hop is gone: if your registry speaks the OCI Distribution spec, Magic Containers can pull from it.</p><h2 id="any-oci-compliant-registry">Any OCI-compliant registry</h2>
<!--kg-card-begin: html-->
<p>There is a new registry type: <strong>OCI-compliant registry</strong>
. Give it a host name and credentials, and that is the whole setup. Your team can deploy from Harbor, GitLab, AWS ECR, Azure ACR, Google Artifact Registry, a self-hosted <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">registry:2</code>: if it implements <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/v2/</code>, it works.</p>

<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Under the hood, every private registry now goes through one OCI client. It answers the standard <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">WWW-Authenticate</code> token challenge, lists repositories through <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/v2/_catalog</code> when the registry allows it, and reads tags and digests the same way for everyone. One code path means fewer per-vendor surprises for you, and for us.</p>

<!--kg-card-end: html-->
<p>We check your credentials when you save the registry. A wrong password fails right there, not at 2 a.m. during a deploy.</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://bunny.net/blog/content/images/2026/11/new-image-registry.webp" class="kg-image" alt="Pull from any OCI registry on Magic Containers" loading="lazy" width="437" height="746"></figure><h2 id="find-an-image-by-pasting-its-reference">Find an image by pasting its reference</h2>
<!--kg-card-begin: html-->
<p>Not every registry lets you list its contents. Docker Hub, for example, refuses <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">_catalog</code>. So the container dialog now starts with a single input: paste the full image reference, such as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">registry.example.com/team/api:1.4.2</code>.</p>

<!--kg-card-end: html-->
<figure class="kg-card kg-image-card kg-width-wide"><img src="https://bunny.net/blog/content/images/2026/11/image-box.webp" class="kg-image" alt="Pull from any OCI registry on Magic Containers" loading="lazy" width="940" height="184" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/image-box.webp 600w, https://bunny.net/blog/content/images/2026/11/image-box.webp 940w"></figure>
<!--kg-card-begin: html-->
<p>We look it up across your registries and confirm the match: <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">&#x2713; Found in &quot;my-harbor&quot; &#xB7; sha256: &#x2026;</code></p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card kg-width-wide"><img src="https://bunny.net/blog/content/images/2026/11/alpine-image.webp" class="kg-image" alt="Pull from any OCI registry on Magic Containers" loading="lazy" width="919" height="161" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/alpine-image.webp 600w, https://bunny.net/blog/content/images/2026/11/alpine-image.webp 919w"></figure><p>If the tag doesn&apos;t exist, you get the closest matches instead of a dead end: other tags of the same image, or images with similar names. Browsing by registry, image, and tag is still there when you want it.</p><figure class="kg-card kg-image-card kg-width-wide"><img src="https://bunny.net/blog/content/images/2026/11/image-url.webp" class="kg-image" alt="Pull from any OCI registry on Magic Containers" loading="lazy" width="925" height="298" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/image-url.webp 600w, https://bunny.net/blog/content/images/2026/11/image-url.webp 925w"></figure><h2 id="errors-that-tell-you-what-broke">Errors that tell you what broke</h2><p>&quot;Failed to load images&quot; is not a debugging tool. When a lookup fails now, the panel names the registry that failed and the reason the registry gave: credentials refused, repository not found, host unreachable. With five registries attached, you know which one to fix without opening each of them.</p><h2 id="path-based-registries">Path-based registries</h2>
<!--kg-card-begin: html-->
<p>Some providers hand you an address with a namespace baked in, like <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">rg.fr-par.scw.cloud/my-namespace</code>. Paste it as-is when you add the registry: we keep the host and you reference the namespace in the image name. We also handle Oracle OCIR&apos;s token challenge, which sends an empty scope that stricter clients choke on.</p>
<!--kg-card-end: html-->
<h2 id="bring-your-registry">Bring your registry</h2><p><a href="https://dash.bunny.net/magic-containers/" rel="noreferrer">Open the Magic Containers dashboard</a>, add your registry as an OCI-compliant registry with its host name and credentials, and paste your first image reference. We&apos;ll check the credentials on save, find the image, and confirm the digest before you deploy.</p><p>Spin up your first app globally in minutes, straight from the registry you already use.</p><p><a href="https://dash.bunny.net/magic-containers/" rel="noreferrer">Log in</a> to add your registry, or <a href="https://bunny.net/">sign up</a> to get started.</p>]]></content:encoded></item><item><title><![CDATA[Migrating devtooljobs.com from Vercel to bunny.net]]></title><description><![CDATA[How I moved devtooljobs.com from Vercel to bunny.net with a Next.js on Magic Containers, redirects in Bunny Database, and the other details.]]></description><link>https://bunny.net/blog/migrating-nextjs-to-bunny-net/</link><guid isPermaLink="false">6b04327c8b5fed851dd544cb</guid><category><![CDATA[Compute]]></category><dc:creator><![CDATA[Dino Kukic]]></dc:creator><pubDate>Mon, 23 Nov 2026 12:57:02 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/moving-from-vercel-to-bunny-net.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/moving-from-vercel-to-bunny-net.png" alt="Migrating devtooljobs.com from Vercel to bunny.net"><p>For some time now, I&#x2019;ve been running a side project <a href="https://devtooljobs.com/" rel="noreferrer">devtooljobs.com</a>. It started when I was looking for a new role and decided to finally build something fun and useful that had been brewing in my mind for quite some time. In the spirit of learning, I think I ended up creating a Rube Goldberg Machine among job boards. But it&#x2019;s a project that keeps on giving, and recently I decided to migrate the Next.js part of it from Vercel to bunny.net.</p><p>But Vercel makes Next.js deployment so easy, why change?</p><p>For one, as you&#x2019;ll see below, I was using Edge Config for redirects, and it wasn&#x2019;t really scalable for my use case. I had around 150-200 jobs deleted per day, which meant that many redirect entries per day. I also hit the 64KB limit on the Pro plan fairly quickly. Another thing was per-user pricing. Since there were two users on the project, the cost came out to $40 per month, which dropped roughly twentyfold on bunny.net. And finally, once everything is set up, deployment is just as easy.</p><p>In this post, I&#x2019;ll walk through the original Vercel setup and how the system worked, the steps I took to migrate it, some of the obstacles I ran into (a few of them entirely self-inflicted), and how the architecture looks now.</p><h2 id="previous-architecture">Previous architecture</h2><p>Before going into the explanations themselves, I think it&#x2019;s worth looking at a diagram of the whole system and how the components interact with each other:</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/devtooljobs-architecture-pre-migration.jpg" class="kg-image" alt="Migrating devtooljobs.com from Vercel to bunny.net" loading="lazy" width="2000" height="1924" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/devtooljobs-architecture-pre-migration.jpg 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/devtooljobs-architecture-pre-migration.jpg 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/devtooljobs-architecture-pre-migration.jpg 1600w, https://bunny.net/blog/content/images/size/w2400/2026/11/devtooljobs-architecture-pre-migration.jpg 2400w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p><strong>Hosting -</strong> Vercel</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Rendering -</strong> Hybrid SSG + ISR (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">revalidate = 60</code>) + SSR (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">force-dynamic</code> on <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/search</code>)</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Redirects -</strong> Vercel Edge Config (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@vercel/edge-config</code>), where middleware checks a key-value store for deleted job slugs and issues 301 redirects to category pages. I explain how those end up in Edge Config in the revalidation section below.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Redirect CRUD -</strong> Vercel REST API (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">https://api.vercel.com/v1/edge-config/{id}/items</code>) called from <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">src/lib/redirects.ts</code> using <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">VERCEL_ACCESS_TOKEN</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">EDGE_CONFIG_ID</code>.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Vercel speed insights -</strong> <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@vercel/speed-insights</code> component in root layout. This was a nice-to-have from the start, so I don&#x2019;t feel that bad about dropping it later.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>OG images -</strong> <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">next/og</code> <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">ImageResponse</code> with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">export const runtime = &quot;edge&quot;</code> on both job posting and category pages.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Revalidation webhook -</strong> <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">POST /api/revalidate</code> validated via <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">x-vercel-revalidation-key</code> header. This API route does a bit more than just revalidation. It receives a webhook and, based on whether it&#x2019;s an <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">update</code> or <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">unpublish</code>, it:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<ul>
  <li>revalidates the page</li>
  <li>adds a redirect entry to Edge Config if post is unpublished or removes it if it&#x2019;s re-published</li>
  <li>sends a new job message to Slack</li>
  <li>submits the URL to Google&#x2019;s Indexing API</li>
</ul>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<div style="background:#f6f7f9; border-left:3px solid #223c6a; border-radius:6px; padding:14px 16px; margin:0 0 1.5em; color:#183d6d;"><p style="margin:0;"><strong>Note:</strong> I don&#x2019;t use <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">publish</code> because Strapi sends both <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">publish</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">update</code> on publish, so for one published post it would send a webhook twice.</p></div>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Static generation -</strong> At the time of writing, ~5000 pages pre-rendered at build time using <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">generateStaticParams</code></p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Self-referencing fetches -</strong> Homepage components and pretty much all content are fetched from their own <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/api/*</code> routes (e.g. <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/api/jobs/total-count</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/api/jobs/categories-with-top</code>). Vercel resolves these internally during build, which is no longer an option with the new system.</p>
<!--kg-card-end: html-->
<h3 id="vercel-specific-dependencies">Vercel-specific dependencies</h3>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>{
  <span style="color:#2a5599;">&quot;@vercel/edge-config&quot;</span>: <span style="color:#6a8e2f;">&quot;^1.4.3&quot;</span>,
  <span style="color:#2a5599;">&quot;@vercel/speed-insights&quot;</span>: <span style="color:#6a8e2f;">&quot;^1.2.0&quot;</span>
}</code></pre>
<!--kg-card-end: html-->
<h3 id="vercel-specific-environment-variables">Vercel-specific environment variables</h3>
<!--kg-card-begin: html-->
<ul>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">VERCEL_ACCESS_TOKEN</code> - edge config API auth</li>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">EDGE_CONFIG_ID</code> - edge config store identifier</li>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">VERCEL_URL</code> - fallback base URL in the revalidation route</li>
</ul>
<!--kg-card-end: html-->
<h2 id="the-migration">The migration</h2><h3 id="next-config">Next config</h3>
<!--kg-card-begin: html-->
<p>I added <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">output: &quot;standalone&quot;</code> for Docker deployment and set <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">staticPageGenerationTimeout: 180</code>.</p>
<!--kg-card-end: html-->
<h3 id="setting-up-redirects">Setting up redirects</h3><p>Moving the redirects to a database could theoretically add some latency, but so far it&#x2019;s looking good. To get the <a href="https://bunny.net/database/" rel="noreferrer">Bunny Database</a> up and running, you can follow this guide.</p>
<!--kg-card-begin: html-->
<p>The first thing I had to do here was replace <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@vercel/edge-config</code> import with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@libsql/client</code>. I also switched to a lazy <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">getDb()</code> pattern because <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@libsql/client</code> <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">createClient()</code> call was at module scope. During <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">next build</code>, the module gets imported but <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_URL</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_TOKEN</code> are not set, which causes <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Cannot read properties of undefined (reading &apos;replace&apos;)</code> crash.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Before:</strong></p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> { get } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&apos;@vercel/edge-config&apos;</span>;
<span style="color:#c0392b;">const</span> redirectTo = <span style="color:#c0392b;">await</span> get&lt;string&gt;(key);</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>After:</strong></p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> { createClient, <span style="color:#c0392b;">type</span> Client } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&apos;@libsql/client&apos;</span>;

<span style="color:#c0392b;">let</span> _db: Client | null = null;
<span style="color:#c0392b;">function</span> getDb(): Client {
  <span style="color:#c0392b;">if</span> (!_db) {
    _db = createClient({
      url: process.env.BUNNY_DB_URL!,
      authToken: process.env.BUNNY_DB_TOKEN!,
    });
  }
  <span style="color:#c0392b;">return</span> _db;
}

<span style="color:#c0392b;">const</span> result = <span style="color:#c0392b;">await</span> getDb().execute({
  sql: <span style="color:#6a8e2f;">&apos;SELECT target FROM redirects WHERE key = ?&apos;</span>,
  args: [key],
});</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>From there I had to rewrite all CRUD operations from the Vercel Edge Config REST API to libSQL queries. When I initially set this up, edge config was not allowing me to have <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/</code> in the key so I would transform <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/</code> to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">__</code> and I decided to leave it as it is.</p>
<!--kg-card-end: html-->
<h3 id="og-image-generation">OG Image generation</h3>
<!--kg-card-begin: html-->
<p>All I had to do here is to remove <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">export const runtime = &quot;edge&quot;</code> from:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<ul>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">src/app/[category]/opengraph-image.tsx</code></li>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">src/app/[category]/[slug]/opengraph-image.tsx</code></li>
</ul>
<!--kg-card-end: html-->
<p>These now run on the default Node.js runtime.</p><h3 id="revalidation">Revalidation</h3>
<!--kg-card-begin: html-->
<p>I changed the webhook auth header from <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">x-vercel-revalidation-key</code> to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">x-revalidate-key</code> and updated the Strapi webhook configuration to send the new header name.</p>
<!--kg-card-end: html-->
<h3 id="packagejson-tweaks">package.json tweaks:</h3>
<!--kg-card-begin: html-->
<ul>
  <li>Removed: <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@vercel/edge-config</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@vercel/speed-insights</code></li>
  <li>Added: <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@libsql/client</code></li>
</ul>
<!--kg-card-end: html-->
<h3 id="removing-all-api-routes">Removing all API routes</h3><p>This is quite specific to my situation, but I had a number of API routes in Next.js through which I was collecting content from Strapi. Since these wouldn&#x2019;t be available during the Docker build the way they are on Vercel, I had to change the implementation to fetch data directly from Strapi. To be fair, this somehow completely skipped my mind at first, and I had to learn it the hard way.</p><h3 id="dockerfile">Dockerfile</h3>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">FROM</span> node:20-alpine <span style="color:#c0392b;">AS</span> base

<span style="color:#c0392b;">FROM</span> base <span style="color:#c0392b;">AS</span> deps
<span style="color:#c0392b;">WORKDIR</span> /app
<span style="color:#c0392b;">RUN</span> corepack enable &amp;&amp; corepack prepare pnpm@8.11.0 --activate
<span style="color:#c0392b;">COPY</span> package.json pnpm-lock.yaml ./
<span style="color:#c0392b;">RUN</span> pnpm install --frozen-lockfile

<span style="color:#c0392b;">FROM</span> base <span style="color:#c0392b;">AS</span> builder
<span style="color:#c0392b;">WORKDIR</span> /app
<span style="color:#c0392b;">RUN</span> corepack enable &amp;&amp; corepack prepare pnpm@8.11.0 --activate
<span style="color:#c0392b;">COPY</span> --from=deps /app/node_modules ./node_modules
<span style="color:#c0392b;">COPY</span> . .
<span style="color:#c0392b;">ENV</span> NEXT_TELEMETRY_DISABLED=1

<span style="color:#c0392b;">ARG</span> NEXT_PUBLIC_STRAPI_URL
<span style="color:#c0392b;">ARG</span> NEXT_PUBLIC_SITE_URL
<span style="color:#c0392b;">ARG</span> MEILI_URL

<span style="color:#c0392b;">RUN</span> --mount=type=secret,id=STRAPI_TOKEN \
    --mount=type=secret,id=MEILI_MASTER_KEY \
    STRAPI_TOKEN=$(cat /run/secrets/STRAPI_TOKEN) \
    MEILI_MASTER_KEY=$(cat /run/secrets/MEILI_MASTER_KEY) \
    pnpm build

<span style="color:#c0392b;">FROM</span> base <span style="color:#c0392b;">AS</span> runner
<span style="color:#c0392b;">WORKDIR</span> /app
<span style="color:#c0392b;">ENV</span> NODE_ENV=production
<span style="color:#c0392b;">ENV</span> NEXT_TELEMETRY_DISABLED=1
<span style="color:#c0392b;">RUN</span> addgroup --system --gid 1001 nodejs
<span style="color:#c0392b;">RUN</span> adduser --system --uid 1001 nextjs
<span style="color:#c0392b;">COPY</span> --from=builder /app/public ./public
<span style="color:#c0392b;">COPY</span> --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
<span style="color:#c0392b;">COPY</span> --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
<span style="color:#c0392b;">USER</span> nextjs
<span style="color:#c0392b;">EXPOSE</span> 3000
<span style="color:#c0392b;">CMD</span> [<span style="color:#6a8e2f;">&quot;node&quot;</span>, <span style="color:#6a8e2f;">&quot;server.js&quot;</span>]</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The reason I added <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">ARG</code> declarations in the Dockerfile and passed values via <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--build-arg</code> was because <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_URL</code> was not available inside the Docker build context. As a result, the Strapi client initialization called <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_URL.replace(...)</code> which threw an <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">undefined</code>.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Another issue was that <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_TOKEN</code>, when passed as a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--build-arg</code>, leaked into Docker layer cache and history. Initially, I tried passing it as a plain <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">ARG</code>, but couldn&#x2019;t get authentication working that way. Eventually, for secrets, I used Docker BuildKit secrets, which are mounted at build time via a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">RUN --mount=type=secret</code> instruction and are not persisted in the image layers or build history.</p>
<!--kg-card-end: html-->
<h3 id="github-actions-workflow">GitHub Actions workflow</h3>
<!--kg-card-begin: html-->
<p>I created <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">.github/workflows/docker-build.yml</code> for the GitHub Actions workflow that builds and pushes to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">ghcr.io</code> on every push to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main</code>. It uses <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">docker/build-push-action@v6</code> with GitHub Actions caching, passes non-sensitive env vars as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">build-args</code>, and sensitive tokens as Docker <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">secrets</code>.</p>
<!--kg-card-end: html-->
<p>The important stuff:</p>
<!--kg-card-begin: html-->
<ul>
  <li>Triggers on push to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">workflow_dispatch</code></li>
  <li>Non-sensitive build args sourced from GitHub repository variables (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">vars.*</code>)</li>
  <li>Sensitive values sourced from GitHub repository secrets (<code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">secrets.*</code>)</li>
  <li>Tags images with both Git SHA and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">latest</code></li>
</ul>
<!--kg-card-end: html-->
<h3 id="environment-variables">Environment variables</h3>
<!--kg-card-begin: html-->
<p><strong>Build-time variables (passed as Docker build args or secrets and stored in the GitHub repository)</strong></p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%; margin:0 0 1.5em;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Variable</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Type</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Purpose</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">NEXT_PUBLIC_STRAPI_URL</code></td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">build-arg</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">Strapi CMS URL (inlined into client JS)</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">NEXT_PUBLIC_SITE_URL</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">build-arg</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Canonical site URL (inlined into client JS)</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">MEILI_URL</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">build-arg</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Meilisearch URL for search index</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_TOKEN</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">secret</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Bearer token for Strapi API (used during static page generation)</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">MEILI_MASTER_KEY</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">secret</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Meilisearch API key</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><strong>Runtime (set on the Bunny Magic Containers)</strong></p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%; margin:0 0 1.5em;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Variable</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Purpose</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_URL</code></td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">Strapi URL (also needed at runtime for ISR)</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">STRAPI_TOKEN</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Bearer token for Strapi API</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">NEXT_PUBLIC_SITE_URL</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Canonical site URL</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">MEILI_URL</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Meilisearch URL</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">MEILI_MASTER_KEY</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Meilisearch API key</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_URL</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Bunny Database libSQL endpoint</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_TOKEN</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Bunny Database auth token</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">REVALIDATE_SECRET</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Shared secret for ISR webhook</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">SLACK_CLIENT_ID</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Slack app client ID</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">SLACK_CLIENT_SECRET</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Slack app client secret</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">GOOGLE_SERVICE_ACCOUNT_JSON</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Google Indexing API credentials</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<h2 id="side-quest-to-migrate-existing-redirects-to-bunny-database">Side quest to migrate existing redirects to Bunny Database</h2><h3 id="schema">Schema</h3>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">CREATE</span> <span style="color:#c0392b;">TABLE</span> <span style="color:#c0392b;">IF</span> <span style="color:#c0392b;">NOT</span> <span style="color:#c0392b;">EXISTS</span> redirects (
  key <span style="color:#c0392b;">TEXT</span> <span style="color:#c0392b;">PRIMARY</span> <span style="color:#c0392b;">KEY</span>,
  target <span style="color:#c0392b;">TEXT</span> <span style="color:#c0392b;">NOT</span> <span style="color:#c0392b;">NULL</span>
);</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>As I mentioned above, Edge Config did not allow storing paths containing <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/</code> so I replaced <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/</code> with double underscores. For example, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/sales/job-slug</code> becomes <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">sales__job-slug</code>,and the target is <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/${categorySlug}</code>.</p>
<!--kg-card-end: html-->
<h3 id="export-from-vercel-edge-config">Export from Vercel Edge Config</h3>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">curl</span> -s <span style="color:#6a8e2f;">&quot;https://api.vercel.com/v1/edge-config/${EDGE_CONFIG_ID}/items&quot;</span> \
  -H <span style="color:#6a8e2f;">&quot;Authorization: Bearer ${VERCEL_ACCESS_TOKEN}&quot;</span> \
  | <span style="color:#c0392b;">jq</span> <span style="color:#6a8e2f;">&apos;.&apos;</span> &gt; redirects.json</code></pre>
<!--kg-card-end: html-->
<h3 id="import-into-bunny-database">Import into Bunny Database</h3><p>This was just a one-off migration script that I used inside the project and removed afterward:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> { createClient } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&apos;@libsql/client&apos;</span>;

<span style="color:#c0392b;">const</span> db = createClient({
  url: <span style="color:#6a8e2f;">&apos;libsql://your-bunny-db-url.bunnydb.net&apos;</span>,
  authToken: <span style="color:#6a8e2f;">&apos;access-token&apos;</span>,
});

<span style="color:#c0392b;">await</span> db.execute(
  <span style="color:#6a8e2f;">&apos;CREATE TABLE IF NOT EXISTS redirects (key TEXT PRIMARY KEY, target TEXT NOT NULL)&apos;</span>
);

<span style="color:#c0392b;">const</span> items = JSON.parse(fs.readFileSync(<span style="color:#6a8e2f;">&apos;redirects.json&apos;</span>, <span style="color:#6a8e2f;">&apos;utf-8&apos;</span>));
<span style="color:#c0392b;">for</span> (<span style="color:#c0392b;">const</span> item <span style="color:#c0392b;">of</span> items) {
  <span style="color:#c0392b;">await</span> db.execute({
    sql: <span style="color:#6a8e2f;">&apos;INSERT OR REPLACE INTO redirects (key, target) VALUES (?, ?)&apos;</span>,
    args: [item.key, item.value],
  });
}</code></pre>
<!--kg-card-end: html-->
<h2 id="post-migration-architecture">Post-migration architecture</h2><p>Here&#x2019;s the new diagram:</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/devtooljobs-architecture-post-migration.jpg" class="kg-image" alt="Migrating devtooljobs.com from Vercel to bunny.net" loading="lazy" width="2000" height="2042" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/devtooljobs-architecture-post-migration.jpg 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/devtooljobs-architecture-post-migration.jpg 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/devtooljobs-architecture-post-migration.jpg 1600w, https://bunny.net/blog/content/images/size/w2400/2026/11/devtooljobs-architecture-post-migration.jpg 2400w" sizes="(min-width: 720px) 720px"></figure><h3 id="new-dependencies">New dependencies</h3>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>{
  <span style="color:#2a5599;">&quot;@libsql/client&quot;</span>: <span style="color:#6a8e2f;">&quot;^0.14.0&quot;</span>
}</code></pre>
<!--kg-card-end: html-->
<h3 id="new-environment-variables">New environment variables</h3>
<!--kg-card-begin: html-->
<ul>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_URL</code> - Bunny Database libSQL endpoint (runtime)</li>
  <li><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DB_TOKEN</code> - Bunny Database auth token (runtime)</li>
</ul>
<!--kg-card-end: html-->
<h2 id="final-thoughts-and-other-minor-things">Final thoughts and other minor things</h2><p>To point a root domain to bunny.net&#x2019;s pull zone, I moved the DNS from Namecheap to <a href="https://bunny.net/dns/" rel="noreferrer">Bunny DNS</a> because it allowed me to use a CNAME record for the root domain.</p><p>The SEO in me wasn&#x2019;t comfortable with having CDN domains available to search engines. Even though it likely wouldn&#x2019;t cause any real problems, I decided to use an <a href="https://bunny.net/docs/cdn/edge-rules" rel="noreferrer">Edge Rule</a> to block traffic to any request URL that starts with that domain.</p><p>And finally, given that we now have persistent volumes, I am planning to migrate Strapi, Meili, and Umami to <a href="https://bunny.net/magic-containers/" rel="noreferrer">Magic Containers</a> as well.</p>]]></content:encoded></item><item><title><![CDATA[New Bunny Shield WAF rules for Java4Shell, Ruby2Shell, and other critical web vulnerabilities]]></title><description><![CDATA[Bunny Shield includes managed WAF rules that block known exploit patterns for Java4Shell, Ruby2Shell, WordPress, and Apache Roller while you patch.]]></description><link>https://bunny.net/blog/new-bunny-shield-protections-for-java4shell-ruby2shell-and-other-critical-web-vulnerabilities/</link><guid isPermaLink="false">6afedadd8b5fed851dd54463</guid><category><![CDATA[Security]]></category><dc:creator><![CDATA[Joe Connolly]]></dc:creator><pubDate>Thu, 19 Nov 2026 11:28:39 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/artwork_2560px-1.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/artwork_2560px-1.jpg" alt="New Bunny Shield WAF rules for Java4Shell, Ruby2Shell, and other critical web vulnerabilities"><p><em>Days since last critical vulnerability: 0.</em></p><p>We were hoping to get that counter into double digits. We did not. This week brought a wave of critical vulnerabilities across the web ecosystem, including remote code execution flaws in the Java and Ruby runtimes, WordPress core, and Apache Roller. So here we are again, and so are you.</p><p>The good news: Bunny Shield now includes managed WAF rules that help block the known exploitation patterns for these issues before they reach your origin.</p><p>These rules reduce your exposure during the window between disclosure and patching. They are not a substitute for patching. Updating the affected runtime or application remains the top priority, and security updates are always the permanent fix.</p><h2 id="understanding-the-vulnerabilities">Understanding the vulnerabilities</h2><h3 id="cve-2026-114938-java4shell-openjdk-base64-heap-overflow">CVE-2026-114938 (Java4Shell): OpenJDK Base64 heap overflow</h3><p><strong>Severity: Critical.</strong> A heap buffer overflow in the HotSpot JVM&apos;s Base64 decoder can lead to unauthenticated remote code execution on affected x86-64 systems. Because Base64 is decoded from so many untrusted inputs, including HTTP Basic auth headers, JWTs, and request bodies, the flaw is often reachable before any application code runs. Fixed releases include Java 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1. Java 8 and 11 are not affected.</p><h3 id="ghsa-34m4-m9fh-gqp5-ruby2shell-ruby-case-conversion-heap-overflow">GHSA-34m4-m9fh-gqp5 (Ruby2Shell): Ruby case-conversion heap overflow</h3><p><strong>Severity: Critical.</strong> A one-byte heap overflow in Ruby&apos;s string case conversion can lead to remote code execution. It is triggered when text in a legacy single-byte encoding, such as ISO-8859-1 or Windows-1252, is upcased. Rails and classic-style Sinatra applications are reachable in their default configuration. UTF-8 input is not affected. Fixed in Ruby 3.3.14, 3.4.13, and 4.0.10.</p><h3 id="cve-2026-119977-wordpress-core-upgrade-staging-flaw">CVE-2026-119977 (WordPress): core-upgrade staging flaw</h3><p><strong>Severity: Critical, actively exploited.</strong> During a full-package core upgrade, affected WordPress versions extract the new release into a predictable, web-accessible staging directory. An unauthenticated attacker who reaches that directory during the upgrade window can execute code on the server. Fixed in WordPress 7.1.4, which randomizes the staging path.</p><h3 id="cve-2026-129448-apache-roller-xml-rpc-deserialization">CVE-2026-129448 (Apache Roller): XML-RPC deserialization</h3><p><strong>Severity: Critical, actively exploited.</strong> Apache Roller&apos;s XML-RPC endpoint reconstructs attacker-supplied data types before checking authorization, enabling unauthenticated remote code execution. Fixed in Roller 6.1.6 and later.</p><h2 id="how-bunny-shield-protects-your-site">How Bunny Shield protects your site</h2><p>Bunny Shield now includes managed WAF rules for each of these vulnerabilities. The rules match the known exploitation patterns, such as the malformed Base64 padding that triggers Java4Shell and the request shape that triggers Ruby2Shell, and block matching requests before they reach your origin.</p><p>For Shield Zones with the WAF in blocking mode, matching requests are blocked. In log-only mode, the rules record matches without blocking. Bunny Shield always respects the mode you have configured. If your site is already protected by Bunny Shield, no additional configuration is required.</p><h2 id="protection-while-you-update">Protection while you update</h2><p>There is always a gap between the moment a vulnerability is disclosed and the moment every affected server is patched. Virtual patching helps close that gap: a managed WAF rule can block the known attack pattern at the edge while you schedule and roll out the underlying fix.</p><p>Virtual patching complements updates rather than replacing them. Some of these flaws have attack paths a WAF cannot see, and for Ruby2Shell a full public exploit has not yet been released, so our rule blocks the published trigger pattern. We will refine these rules as more technical detail and proof-of-concept code become available.</p><h2 id="what-you-should-do">What you should do</h2><ul><li>Update the affected runtime or application to a fixed release as soon as you can.</li><li>Verify that Bunny Shield is enabled on your zones.</li><li>Review your Shield logs for matches against the new rules.</li><li>Keep monitoring vendor advisories, as related follow-up issues are still emerging.</li></ul><h2 id="staying-ahead-of-new-attack-techniques">Staying ahead of new attack techniques</h2><p>Critical vulnerabilities rarely arrive alone, and exploitation techniques evolve in the days after disclosure. We continuously add and refine managed rules as new patterns appear, so your zones stay protected without manual work on your side.</p><h2 id="protect-your-infrastructure-with-bunny-shield">Protect your infrastructure with Bunny Shield</h2><p>Bunny Shield gives you a managed WAF, DDoS protection, and edge security that stay current as new threats emerge, so you can focus on building rather than chasing advisories.</p><p><a href="https://dash.bunny.net/">Log in</a> to review your Shield configuration, or <a href="https://bunny.net/">sign up</a> to get started.</p>]]></content:encoded></item><item><title><![CDATA[HopStart cohort #4: three more startups building on bunny.net]]></title><description><![CDATA[Our startup program welcomes wedium, Castee, and Loggd in cohort #4. Read about what they’re building and apply for cohort #5.]]></description><link>https://bunny.net/blog/hopstart-cohort-4-three-more-startups-building-on-bunny-net/</link><guid isPermaLink="false">6afb13248b5fed851dd5444b</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Marek Nalikowski]]></dc:creator><pubDate>Mon, 16 Nov 2026 14:34:41 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/IMG_6407-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/IMG_6407-1.png" alt="HopStart cohort #4: three more startups building on bunny.net"><p>Every quarter, HopStart backs three early-stage teams with up to <strong>$50,000 USD in credits</strong> on bunny.net, along with direct support from our team and new features before they&apos;re generally available. The point is to let founders put their time into the product rather than into keeping infrastructure running.</p><p>This round brought in more applications than any before it. That&apos;s great to see, but reviewing them all took longer than usual, and cohort #4 is arriving later than the October date we promised. To everyone who applied, thanks for bearing with us.</p><p>The bar stayed the same as in earlier rounds: a product people genuinely need, built in a way that gives bunny.net a meaningful place in the stack. These are the three teams that made it.</p><h2 id="1st-place-wedium">1st place: wedium</h2><p><strong>Founder:</strong> Sebastian Wilke</p><p><strong>Year founded:</strong> 2025</p><p><strong>URL:</strong> <a href="https://wedium.social/">https://wedium.social/</a></p><p><strong>Credits received:</strong> $50,000 for one year</p><p><strong>In the founder&apos;s words:</strong> &quot;The infrastructure of Europe&apos;s democracy is under pressure. wedium wants to change this by offering a sovereign, European-based social media platform, built around its own values: trust, responsibility, democratic resilience and digital sovereignty. Our algorithm rewards responsible behavior and respectful exchange instead of rage bait, polarization and addictive patterns. 50% of advertising revenue goes to creators and media, reducing their dependency on dominant global platforms.&quot;</p><h2 id="2nd-place-castee">2nd place: Castee</h2><p><strong>Founder:</strong> Tina Mrak Panzalovic</p><p><strong>Year founded:</strong> 2026</p><p><strong>URL:</strong> <a href="https://castee.fm/">https://castee.fm/</a></p><p><strong>Credits received:</strong> $25,000 for one year</p><p><strong>In the founder&apos;s words:</strong> &quot;Castee is building the easiest way for podcasters to create a fast, professional website from their existing RSS feed. A creator can import their show, choose a podcast-focused design, customise their content, and publish a complete website with dedicated episode pages, SEO metadata, analytics, subscribe links, and automatic RSS updates &#x2014; without writing code or maintaining WordPress, plugins, or servers. Our goal is to give independent creators the same quality of web presence as large podcast networks.&quot;</p><h2 id="3rd-place-loggd">3rd place: Loggd</h2><p><strong>Founder:</strong> Tobias K&#xE4;rst</p><p><strong>Year founded:</strong> 2025</p><p><strong>URL:</strong> <a href="https://loggd.me/">https://loggd.me/</a></p><p><strong>Credits received:</strong> $10,000 for one year</p><p><strong>In the founder&apos;s words:</strong> &quot;Loggd is a cross-media logging and discovery platform. Users track, rate, and review films, series, and games in one place, with books and music planned. Because everything sits in a single catalogue, we can read taste across categories rather than within one. Loggd is built to actively surface indie and independent titles, and to give visibility to creators and initiatives the mainstream funnel overlooks.&quot;</p><h2 id="apply-for-cohort-5">Apply for cohort #5</h2><p>Cohort #5 is taking applications now. If bunny.net has a place in what you&apos;re building, send yours in through <a href="https://bunny.net/HopStart#form" rel="noreferrer">the short form</a> by November 30.</p><p>With this many applications, some strong teams didn&apos;t make the cut this time. If yours was one of them, we&apos;d like to see it again.</p><p>We&apos;re aiming to announce cohort #5 in December.</p><p>Good luck to everyone applying!</p>]]></content:encoded></item><item><title><![CDATA[Moving your vals to bunny.net]]></title><description><![CDATA[Val Town is shutting down by January 10 and if you need an alternative, check this post to see how to move it over to bunny.net.]]></description><link>https://bunny.net/blog/moving-your-vals-to-bunny-net/</link><guid isPermaLink="false">6af838958b5fed851dd5439d</guid><category><![CDATA[Compute]]></category><dc:creator><![CDATA[Jamie Barton]]></dc:creator><pubDate>Mon, 16 Nov 2026 08:48:39 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/moving-your-vals-to-bunnydotnet.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/moving-your-vals-to-bunnydotnet.png" alt="Moving your vals to bunny.net"><p>Val Town lets you write a function in the browser and get a URL back a second later. I&apos;ve loved that idea since the first time I used it&#x2026; small pieces of code with a database and file storage close at hand, and no server to look after.</p><p>On November 10, Steve Krouse <a href="https://blog.val.town/winding-down" rel="noreferrer">announced that Val Town is winding down</a>.</p><p>Bunny Database is built on libSQL too. Your vals already speak its language, so most of the move is about where the code runs and where the files live, and the database queries come along as they are.</p><p>Before we begin, there are a few dates that matter:</p>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%; margin:0 0 1.5em;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Date</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">What happens</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Nov 10, 2026</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">New signups and plan upgrades closed</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Dec 10, 2026</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Read-only mode</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Jan 10, 2027</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">All other services end</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Feb 1, 2027</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Val Town is open-sourced</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<p>Val Town gives no later date for SQLite and blob storage, so plan to have your data copied before January 10.</p><h2 id="where-each-piece-goes">Where each piece goes</h2><p>A val maps onto three bunny.net products:</p><ul><li>the HTTP handler runs as an <a href="https://bunny.net/edge-scripting/" rel="noreferrer">Edge Script</a>,</li><li>the SQLite tables move to <a href="https://bunny.net/database/" rel="noreferrer">Bunny Database</a>,</li><li>and blobs become files in <a href="https://bunny.net/storage/" rel="noreferrer">Bunny Storage</a>.</li></ul>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%; margin:0 0 1.5em;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">On Val Town</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">On bunny.net</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">What changes in your code</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">HTTP trigger: a default export that takes a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Request</code> and returns a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Response</code></td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">A standalone Edge Script that passes a handler to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BunnySDK.net.http.serve()</code></td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">One wrapper line</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">std/sqlite</code>, an <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@libsql/client</code> instance</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Bunny Database, built on libSQL</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">The import and the client setup</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">std/blob</code>, backed by Amazon S3 (scoped) or Cloudflare R2 (global)</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">A Bunny Storage zone through <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@bunny.net/storage-sdk</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">A small helper with the same method names</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Environment variables read with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Deno.env.get()</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Environment variables and secrets on the script, read with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">process.env</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Where you read them</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Each script gets the standard Web APIs, and code written against <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Request</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Response</code>, and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">fetch</code> keeps working, so most of the migration is swapping imports.</p>
<!--kg-card-end: html-->
<p>The guide follows the dashboard first, since that&apos;s closest to how Val Town felt. If you&apos;d rather stay in the terminal, the same steps are collected into one CLI run near the end, followed by a prompt you can hand to a coding agent.</p><h2 id="port-your-code-into-one-file">Port your code into one file</h2>
<!--kg-card-begin: html-->
<p>The goal of this step is a single <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code> that you can paste into the dashboard and keep editing there, the way you did on Val Town.</p>
<!--kg-card-end: html-->
<h3 id="the-http-handler">The HTTP handler</h3>
<!--kg-card-begin: html-->
<p>An HTTP val&apos;s entry file default-exports a function that takes a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Request</code> and returns a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Response</code>:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">export</span> <span style="color:#c0392b;">default</span> <span style="color:#c0392b;">async</span> <span style="color:#c0392b;">function</span> (req: Request): Promise&lt;Response&gt; {
  <span style="color:#c0392b;">return</span> Response.json(<span style="color:#6a8e2f;">&quot;hello, http!&quot;</span>);
}</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>A standalone Edge Script uses the same function. Pass it to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">serve()</code>:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> * <span style="color:#c0392b;">as</span> BunnySDK <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;npm:@bunny.net/edgescript-sdk&quot;</span>;

<span style="color:#c0392b;">async</span> <span style="color:#c0392b;">function</span> handler(req: Request): Promise&lt;Response&gt; {
  <span style="color:#c0392b;">return</span> Response.json(<span style="color:#6a8e2f;">&quot;hello, http!&quot;</span>);
}

BunnySDK.net.http.serve(handler);</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Vals built on Hono keep their routes. Hand <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">app.fetch</code> to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">serve()</code>:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> * <span style="color:#c0392b;">as</span> BunnySDK <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;npm:@bunny.net/edgescript-sdk&quot;</span>;
<span style="color:#c0392b;">import</span> { Hono } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;npm:hono&quot;</span>;

<span style="color:#c0392b;">const</span> app = <span style="color:#c0392b;">new</span> Hono();
app.get(<span style="color:#6a8e2f;">&quot;/&quot;</span>, (c) =&gt; c.json({ ok: true }));

BunnySDK.net.http.serve(app.fetch);</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">npm:</code> prefix lets the script load packages with no build step, so the file you paste into the code editor is the file that runs. Imports from <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">esm.town</code> load from Val Town&apos;s servers, so swap each one for the npm or JSR package it wraps before January 10.</p>
<!--kg-card-end: html-->
<h3 id="the-database-client">The database client</h3>
<!--kg-card-begin: html-->
<p>Val Town&apos;s <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">sqlite</code> object is an initialized <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">@libsql/client</code> instance, and Bunny Database&apos;s TypeScript docs use the same client. Swap the import for a client under the same name at the top of your script, and your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">execute()</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">batch()</code> calls keep their arguments, placeholders, and the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">rows</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">columns</code> result shape:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#8a94a6;">// Before</span>
<span style="color:#c0392b;">import</span> { sqlite } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;https://esm.town/v/std/sqlite/main.ts&quot;</span>;

<span style="color:#8a94a6;">// After</span>
<span style="color:#c0392b;">import</span> { createClient } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;npm:@libsql/client/web&quot;</span>;
<span style="color:#c0392b;">import</span> process <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;node:process&quot;</span>;

<span style="color:#c0392b;">const</span> sqlite = createClient({
  url: process.env.BUNNY_DATABASE_URL!,
  authToken: process.env.BUNNY_DATABASE_AUTH_TOKEN!,
});</code></pre>
<!--kg-card-end: html-->
<p>The two environment variables don&apos;t exist yet. The database step adds them to your script for you.</p>
<!--kg-card-begin: html-->
<p>Val Town blobs are values stored under a key. Bunny Storage stores files by path in a storage zone, so each blob key becomes a file path. This helper keeps your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">get</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">set</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">getJSON</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">setJSON</code>, and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">delete</code> call sites unchanged:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">import</span> * <span style="color:#c0392b;">as</span> BunnyStorageSDK <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;npm:@bunny.net/storage-sdk&quot;</span>;

<span style="color:#c0392b;">const</span> zone = BunnyStorageSDK.zone.connect_with_accesskey(
  BunnyStorageSDK.regions.StorageRegion.Falkenstein,
  process.env.BUNNY_STORAGE_ZONE!,
  process.env.BUNNY_STORAGE_PASSWORD!,
);

<span style="color:#c0392b;">const</span> blob = {
  <span style="color:#c0392b;">async</span> set(key: string, value: BodyInit) {
    <span style="color:#c0392b;">const</span> body = <span style="color:#c0392b;">new</span> Response(value).body!;
    <span style="color:#c0392b;">await</span> BunnyStorageSDK.file.upload(zone, <span style="color:#6a8e2f;">`/${key}`</span>, body);
  },

  <span style="color:#c0392b;">async</span> get(key: string) {
    <span style="color:#c0392b;">const</span> { stream } = <span style="color:#c0392b;">await</span> BunnyStorageSDK.file.download(zone, <span style="color:#6a8e2f;">`/${key}`</span>);
    <span style="color:#c0392b;">return</span> <span style="color:#c0392b;">new</span> Response(stream);
  },

  <span style="color:#c0392b;">async</span> setJSON(key: string, value: unknown) {
    <span style="color:#c0392b;">const</span> body = <span style="color:#c0392b;">new</span> Response(JSON.stringify(value)).body!;
    <span style="color:#c0392b;">await</span> BunnyStorageSDK.file.upload(zone, <span style="color:#6a8e2f;">`/${key}`</span>, body, {
      contentType: <span style="color:#6a8e2f;">&quot;application/json&quot;</span>,
    });
  },

  <span style="color:#c0392b;">async</span> getJSON(key: string) {
    <span style="color:#c0392b;">try</span> {
      <span style="color:#c0392b;">return</span> <span style="color:#c0392b;">await</span> (<span style="color:#c0392b;">await</span> this.get(key)).json();
    } <span style="color:#c0392b;">catch</span> {
      <span style="color:#8a94a6;">// Val Town&apos;s getJSON returns undefined for a missing key</span>
      <span style="color:#c0392b;">return</span> undefined;
    }
  },

  <span style="color:#c0392b;">async</span> delete(key: string) {
    <span style="color:#c0392b;">await</span> BunnyStorageSDK.file.remove(zone, <span style="color:#6a8e2f;">`/${key}`</span>);
  },
};</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">list</code> is left out on purpose. Val Town lists every key under a prefix, and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BunnyStorageSDK.file.list()</code> returns the contents of one folder, so a val that walks its keys needs a small recursive version of its own. Change <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Falkenstein</code> if you create your storage zone in another region.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code> now has the imports, the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">sqlite</code> client, the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">blob</code> helper, and your routes, ending with the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">serve()</code> call.</p>
<!--kg-card-end: html-->
<h2 id="create-the-edge-script">Create the Edge Script</h2><p>In the bunny.net dashboard, Add a New Edge Script. Make sure to select&#xA0;<strong>Deploy and edit on bunny.net</strong>:</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.09.29@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1431" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.09.29@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.09.29@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.09.29@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.09.29@2x.png 2088w" sizes="(min-width: 720px) 720px"></figure><p>Then give your script a name, select standalone for its type, and create a new database:</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.11.33@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="3417" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.11.33@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.11.33@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.11.33@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.11.33@2x.png 2120w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p>The dashboard creates an empty database and adds <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DATABASE_URL</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_DATABASE_AUTH_TOKEN</code> to the script for you, which is what the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">sqlite</code> client reads. If you already have a database, you can choose to use that existing one instead.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.13.50@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1256" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.13.50@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.13.50@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.13.50@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.13.50@2x.png 2242w" sizes="(min-width: 720px) 720px"></figure><p>The database replicates across every region, so reads stay close to wherever the script runs, and replicas are provisioned on demand.</p>
<!--kg-card-begin: html-->
<p>Once the script exists, paste your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code> into its code editor and save it. Hold off on publishing until your data and blobs are in place.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.12.30@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1194" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.12.30@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.12.30@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.12.30@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.12.30@2x.png 2288w" sizes="(min-width: 720px) 720px"></figure><p>Standalone scripts act as the origin for their pull zone. The CDN answers cached requests itself and calls your script on a cache miss. An API that must run on every request needs the Run script before cache option, which sits in the script settings.</p><h2 id="move-the-database">Move the database</h2>
<!--kg-card-begin: html-->
<p>The database you created with the script starts empty, and that matters here. Val Town&apos;s dump uses <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">CREATE TABLE IF NOT EXISTS</code>, so a table that already exists with the same name keeps its old structure and the inserts land on top of it. If you chose Use existing, check it holds none of your val&apos;s tables yet.</p>
<!--kg-card-end: html-->
<h3 id="copy-your-data">Copy your data</h3><p>Open the val in Val Town and choose Dump as SQL. The dump carries your tables, rows, indexes, triggers, and autoincrement counters.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-09.16.23@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="920" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-09.16.23@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-09.16.23@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-09.16.23@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-09.16.23@2x.png 2000w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p>Copy the dump into the database&apos;s Database editor and delete the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BEGIN TRANSACTION;</code> and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">COMMIT;</code> lines. Bunny Database runs the whole paste as one transaction and refuses a paste that opens its own. Then open the Run menu and choose Run All Statements:</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-14.58.42@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1096" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-14.58.42@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-14.58.42@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-14.58.42@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-14.58.42@2x.png 2000w" sizes="(min-width: 720px) 720px"></figure><p>The tables appear in the sidebar once the run finishes. Check a few row counts against your val:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">SELECT</span> <span style="color:#c0392b;">COUNT</span>(*) <span style="color:#c0392b;">FROM</span> users;</code></pre>
<!--kg-card-end: html-->
<p>Rehearse on a throwaway database first, and pause writes on the val during the final copy so only one database accepts writes at a time. A very large dump can be awkward to paste into a browser, so the CLI section below shows how to import it from a file.</p><p>Bunny Database is in Public Preview, so features and APIs may still change.</p><h2 id="move-the-blobs">Move the blobs</h2><h3 id="create-the-storage-zone-with-s3-switched-on">Create the storage zone with S3 switched on</h3>
<!--kg-card-begin: html-->
<p>Create a storage zone in the dashboard under Storage, and switch on S3 compatibility in the same form. S3 access can only be enabled when the zone is created, and the copy step below uses it. Pick Falkenstein (DE) as the main region to match the helper, or change <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">StorageRegion.Falkenstein</code> to the region you choose.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.17.09@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="4425" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.17.09@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.17.09@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.17.09@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.17.09@2x.png 2120w" sizes="(min-width: 720px) 720px"></figure><p>Open the zone&apos;s FTP &amp; API Access tab and copy its password.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.18.03@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1333" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.18.03@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.18.03@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.18.03@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.18.03@2x.png 2284w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p>In your script&apos;s Environment page, add <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_STORAGE_ZONE</code> with the zone&apos;s name and <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BUNNY_STORAGE_PASSWORD</code> as a secret with the password.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.19.47@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="679" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.19.47@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.19.47@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.19.47@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.19.47@2x.png 2240w" sizes="(min-width: 720px) 720px"></figure><h3 id="download-your-blobs-from-val-town">Download your blobs from Val Town</h3>
<!--kg-card-begin: html-->
<p>Existing blobs need copying while Val Town still serves them. Both scripts below write every blob into a local <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">./blobs</code> folder, which also doubles as a backup.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>New vals import <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">std/blob/main.ts</code>, which keeps blobs scoped to the val. Your account API token can&apos;t see those, so <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">vt.blobs.list()</code> from the Val Town SDK comes back empty. The val itself can read them, so add a temporary HTTP file to the val that lists the keys and returns one blob at a time:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#8a94a6;">// blob-export.ts (delete it once the copy is verified)</span>
<span style="color:#c0392b;">import</span> { blob } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;https://esm.town/v/std/blob/main.ts&quot;</span>;

<span style="color:#c0392b;">export</span> <span style="color:#c0392b;">default</span> <span style="color:#c0392b;">async</span> <span style="color:#c0392b;">function</span> (req: Request): Promise&lt;Response&gt; {
  <span style="color:#c0392b;">const</span> token = Deno.env.get(<span style="color:#6a8e2f;">&quot;BLOB_EXPORT_TOKEN&quot;</span>);
  <span style="color:#c0392b;">if</span> (!token || req.headers.get(<span style="color:#6a8e2f;">&quot;authorization&quot;</span>) !== <span style="color:#6a8e2f;">`Bearer ${token}`</span>) {
    <span style="color:#c0392b;">return</span> <span style="color:#c0392b;">new</span> Response(<span style="color:#6a8e2f;">&quot;Unauthorized&quot;</span>, { status: 401 });
  }

  <span style="color:#c0392b;">const</span> key = <span style="color:#c0392b;">new</span> URL(req.url).searchParams.get(<span style="color:#6a8e2f;">&quot;key&quot;</span>);
  <span style="color:#c0392b;">if</span> (!key) <span style="color:#c0392b;">return</span> Response.json(<span style="color:#c0392b;">await</span> blob.list());

  <span style="color:#c0392b;">return</span> <span style="color:#c0392b;">new</span> Response((<span style="color:#c0392b;">await</span> blob.get(key)).body, {
    headers: { <span style="color:#6a8e2f;">&quot;cache-control&quot;</span>: <span style="color:#6a8e2f;">&quot;no-store&quot;</span> },
  });
}</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Set <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BLOB_EXPORT_TOKEN</code> to a long random string in the val&apos;s environment variables, then pull everything down with Node:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#8a94a6;">// download-blobs.mjs</span>
<span style="color:#c0392b;">import</span> { mkdir, writeFile } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;node:fs/promises&quot;</span>;
<span style="color:#c0392b;">import</span> { dirname, join } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;node:path&quot;</span>;

<span style="color:#c0392b;">const</span> url = process.env.BLOB_EXPORT_URL;
<span style="color:#c0392b;">const</span> headers = { Authorization: <span style="color:#6a8e2f;">`Bearer ${process.env.BLOB_EXPORT_TOKEN}`</span> };

<span style="color:#c0392b;">for</span> (<span style="color:#c0392b;">const</span> { key } <span style="color:#c0392b;">of</span> <span style="color:#c0392b;">await</span> (<span style="color:#c0392b;">await</span> fetch(url, { headers })).json()) {
  <span style="color:#c0392b;">const</span> res = <span style="color:#c0392b;">await</span> fetch(<span style="color:#6a8e2f;">`${url}?key=${encodeURIComponent(key)}`</span>, { headers });
  <span style="color:#c0392b;">if</span> (!res.ok) <span style="color:#c0392b;">throw</span> <span style="color:#c0392b;">new</span> Error(<span style="color:#6a8e2f;">`${key}: ${res.status}`</span>);

  <span style="color:#c0392b;">const</span> path = join(<span style="color:#6a8e2f;">&quot;blobs&quot;</span>, key);
  <span style="color:#c0392b;">await</span> mkdir(dirname(path), { recursive: true });
  <span style="color:#c0392b;">await</span> writeFile(path, Buffer.<span style="color:#c0392b;">from</span>(<span style="color:#c0392b;">await</span> res.arrayBuffer()));
  console.log(key);
}</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>BLOB_EXPORT_URL=https://your-blob-export.web.val.run \
BLOB_EXPORT_TOKEN=your-token \
<span style="color:#c0392b;">node</span> download-blobs.mjs</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Older vals that import <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">std/blob</code> without <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code> use account-wide storage, which your API token can read directly. Create a token in your Val Town settings, export it as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">VAL_TOWN_API_KEY</code>, and run this version instead:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#8a94a6;">// download-global-blobs.mjs</span>
<span style="color:#c0392b;">import</span> ValTown <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;@valtown/sdk&quot;</span>;
<span style="color:#c0392b;">import</span> { mkdir, writeFile } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;node:fs/promises&quot;</span>;
<span style="color:#c0392b;">import</span> { dirname, join } <span style="color:#c0392b;">from</span> <span style="color:#6a8e2f;">&quot;node:path&quot;</span>;

<span style="color:#c0392b;">const</span> vt = <span style="color:#c0392b;">new</span> ValTown(); <span style="color:#8a94a6;">// reads VAL_TOWN_API_KEY</span>

<span style="color:#c0392b;">for</span> (<span style="color:#c0392b;">const</span> { key } <span style="color:#c0392b;">of</span> <span style="color:#c0392b;">await</span> vt.blobs.list()) {
  <span style="color:#c0392b;">const</span> res = <span style="color:#c0392b;">await</span> vt.blobs.get(key);

  <span style="color:#c0392b;">const</span> path = join(<span style="color:#6a8e2f;">&quot;blobs&quot;</span>, key);
  <span style="color:#c0392b;">await</span> mkdir(dirname(path), { recursive: true });
  <span style="color:#c0392b;">await</span> writeFile(path, Buffer.<span style="color:#c0392b;">from</span>(<span style="color:#c0392b;">await</span> res.arrayBuffer()));
  console.log(key);
}</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">npm</span> install @valtown/sdk
<span style="color:#c0392b;">node</span> download-global-blobs.mjs</code></pre>
<!--kg-card-end: html-->
<h3 id="copy-them-into-bunny-storage">Copy them into Bunny Storage</h3>
<!--kg-card-begin: html-->
<p>Open the storage zone&apos;s File manager in the dashboard. Then open your local <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">blobs</code> folder, select everything inside it, and drag the selection onto the file manager.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Drag the contents. Each blob key has to sit at the root of the zone, so <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">config</code> lands at <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/config</code>, which is the path <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">blob.get(&quot;config&quot;)</code> asks for:</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.25.58@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1141" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.25.58@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.25.58@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.25.58@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.25.58@2x.png 2276w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p>The upload keeps nested keys as folders, so <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">users/1/profile</code> arrives as a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">users</code> folder holding <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">1/profile</code>.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.26.21@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="1712" height="1532" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-15.26.21@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-15.26.21@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-15.26.21@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-15.26.21@2x.png 1712w" sizes="(min-width: 720px) 720px"></figure>
<!--kg-card-begin: html-->
<p>For a val with thousands of blobs, rclone copies the whole folder in one command through the zone&apos;s S3 API. The endpoint uses your zone&apos;s region code in lowercase, so a zone in Falkenstein (DE) uses <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">https://de-s3.storage.bunnycdn.com</code>:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">rclone</span> config create bunny s3 \
  provider=Other \
  access_key_id=my-zone \
  secret_access_key=your-storage-password \
  endpoint=https://de-s3.storage.bunnycdn.com

<span style="color:#c0392b;">rclone</span> copy ./blobs bunny:my-zone
<span style="color:#c0392b;">rclone</span> ls bunny:my-zone</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The access key is the zone&apos;s name and the secret is the zone password you copied earlier. <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">rclone copy ./blobs</code> copies what&apos;s inside the folder, so the keys land at the root here too.</p>
<!--kg-card-end: html-->
<h2 id="publish-and-switch-over">Publish and switch over</h2>
<!--kg-card-begin: html-->
<p>Add an environment variable or secret for any other value the val read with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Deno.env.get()</code>, then click Publish in the code editor. Watch the live logs while you send a few test requests, and compare each response with the same route on your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">val.run</code> URL.</p>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-09.35.40@2x.png" class="kg-image" alt="Moving your vals to bunny.net" loading="lazy" width="2000" height="1096" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/CleanShot-2026-11-14-at-09.35.40@2x.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/CleanShot-2026-11-14-at-09.35.40@2x.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/CleanShot-2026-11-14-at-09.35.40@2x.png 1600w, https://bunny.net/blog/content/images/2026/11/CleanShot-2026-11-14-at-09.35.40@2x.png 2288w" sizes="(min-width: 720px) 720px"></figure><p>A val that has grown into a proper project fits better in a GitHub repository, where each push deploys through GitHub Actions. The repository becomes the place you edit the code from then on.</p>
<!--kg-card-begin: html-->
<p>Val Town&apos;s docs also cover <a href="https://docs.val.town/migration/redirects">redirecting <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">val.run</code> URLs</a>, which saves updating every webhook and bookmark by hand. Steve personally committed to the URL redirects for 10 years, which is great peace of mind for those migrating who have URLs out there that others rely on &lt;3</p>
<!--kg-card-end: html-->
<h2 id="prefer-the-terminal">Prefer the terminal?</h2>
<!--kg-card-begin: html-->
<p>The <a href="https://bunny.net/docs/cli/commands/db">bunny.net CLI</a> runs the same migration from a folder holding your <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code>, the Val Town <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">dump.sql</code>, and the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">./blobs</code> folder. Install it and sign in first:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">npm</span> install -g @bunny.net/cli
<span style="color:#c0392b;">bunny</span> login</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Create the script, then the database. <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--save-env</code> writes the database credentials to a local <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">.env</code> file, and the import reads the dump from a file, so large databases are fine here:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">bunny</span> scripts create my-val --type standalone
<span style="color:#c0392b;">bunny</span> db create --name my-val --link --token --save-env

<span style="color:#c0392b;">grep</span> -v <span style="color:#6a8e2f;">&apos;^BEGIN TRANSACTION;$\|^COMMIT;$&apos;</span> dump.sql &gt; app.sql
<span style="color:#c0392b;">bunny</span> db shell app.sql
<span style="color:#c0392b;">bunny</span> db shell -e <span style="color:#6a8e2f;">&quot;SELECT COUNT(*) FROM users&quot;</span></code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">.env</code> file stays on your machine, so hand the two values to the script as secrets:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">source</span> .env
<span style="color:#c0392b;">bunny</span> scripts env set BUNNY_DATABASE_URL <span style="color:#6a8e2f;">&quot;$BUNNY_DATABASE_URL&quot;</span> --secret
<span style="color:#c0392b;">bunny</span> scripts env set BUNNY_DATABASE_AUTH_TOKEN <span style="color:#6a8e2f;">&quot;$BUNNY_DATABASE_AUTH_TOKEN&quot;</span> --secret</code></pre>
<!--kg-card-end: html-->
<p>Create the storage zone with S3 switched on, and let the CLI write the rclone remote for you. The remote is named after the zone:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">bunny</span> storage zones create my-zone --region DE --s3
<span style="color:#c0392b;">bunny</span> storage zones credentials my-zone --format rclone &gt;&gt; ~/.config/rclone/rclone.conf
<span style="color:#c0392b;">rclone</span> copy ./blobs my-zone:my-zone</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Run <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">bunny storage zones credentials my-zone --show-secret</code> to see the zone&apos;s password, then give the script its storage settings and deploy:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">bunny</span> scripts env set BUNNY_STORAGE_ZONE my-zone
<span style="color:#c0392b;">bunny</span> scripts env set BUNNY_STORAGE_PASSWORD your-storage-password --secret
<span style="color:#c0392b;">bunny</span> scripts deploy main.ts</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The CLI uploads <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">main.ts</code> as it stands, so the dashboard&apos;s code editor shows the same file and you can keep editing it there.</p>
<!--kg-card-end: html-->
<h2 id="hand-the-port-to-your-coding-agent">Hand the port to your coding agent</h2>
<!--kg-card-begin: html-->
<p>Working through the steps by hand is a good way to learn each bunny.net product. You can also hand the whole job to Claude Code, Cursor, or Codex. Copy your val&apos;s files into a folder, save the Dump as SQL output next to them as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">dump.sql</code>, and give the agent the bunny.net CLI skill so it knows the commands:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">bunny</span> login
<span style="color:#c0392b;">bunny</span> skills install</code></pre>
<!--kg-card-end: html-->
<p>Then paste this prompt:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>Port the Val Town val in this folder to bunny.net. Follow these rules exactly.

Code
- Produce one standalone Edge Script file, main.ts, with no build step.
- Import every package with an npm: specifier, e.g. &quot;npm:hono&quot;,
  &quot;npm:@bunny.net/edgescript-sdk&quot;. Bare package names fail without a bundler.
- Replace `export default handler` with BunnySDK.net.http.serve(handler).
  For Hono, pass app.fetch.
- Replace Deno.env.get(&quot;X&quot;) with process.env.X, importing process from
  &quot;node:process&quot;.
- Replace std/sqlite with a libSQL client named `sqlite`, so call sites stay
  the same:
    import { createClient } from &quot;npm:@libsql/client/web&quot;;
    const sqlite = createClient({
      url: process.env.BUNNY_DATABASE_URL!,
      authToken: process.env.BUNNY_DATABASE_AUTH_TOKEN!,
    });
- Replace std/blob with a `blob` object built on &quot;npm:@bunny.net/storage-sdk&quot;,
  connecting with BUNNY_STORAGE_ZONE and BUNNY_STORAGE_PASSWORD. Implement
  only the methods the val uses (get, set, getJSON, setJSON, delete).
  getJSON must return undefined for a missing key. Bunny Storage lists one
  folder at a time, so write a recursive list only if the val calls
  blob.list.
- Replace any other esm.town import with the npm or JSR package it wraps.

Script and database
- bunny scripts create &lt;val-name&gt; --type standalone
- Strip the transaction lines from dump.sql, because Bunny Database runs
  each file in one transaction and rejects a file that opens its own:
    grep -v &apos;^BEGIN TRANSACTION;$\|^COMMIT;$&apos; dump.sql &gt; app.sql
- Create an empty database and import:
    bunny db create --name &lt;val-name&gt; --primary FR --link --token --save-env
    bunny db shell app.sql
- Run SELECT COUNT(*) on every table and show me the results.
- Copy BUNNY_DATABASE_URL and BUNNY_DATABASE_AUTH_TOKEN from .env to the
  script with bunny scripts env set &lt;NAME&gt; &lt;value&gt; --secret.

Blobs
- If the val imports std/blob/main.ts, its blobs are scoped to the val and
  the Val Town API token can&apos;t list them. Write a temporary, bearer-token
  protected blob-export.ts for me to add to the val, which returns
  blob.list() with no query string and one blob&apos;s body for ?key=. Then
  download every key into ./blobs.
- If it imports std/blob without main.ts, download every key into ./blobs
  with vt.blobs.list() and vt.blobs.get(key) from @valtown/sdk.
- Create an S3-enabled storage zone and copy the files:
    bunny storage zones create &lt;zone&gt; --region DE --s3
    bunny storage zones credentials &lt;zone&gt; --format rclone &gt;&gt; ~/.config/rclone/rclone.conf
    rclone copy ./blobs &lt;zone&gt;:&lt;zone&gt;
- Set BUNNY_STORAGE_ZONE, and BUNNY_STORAGE_PASSWORD with --secret.

Deploy
- Set any other environment variable the val reads, using --secret for
  tokens and passwords. Never print a secret in your output.
- bunny scripts deploy main.ts
- Request each GET route on the val.run URL and the bunny.run URL, and show
  me any response that differs. Ask before sending anything that writes.

Ask me before creating anything on bunny.net, and never delete or change
data on Val Town.</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Your agent should stop and ask you to add <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">blob-export.ts</code> to the val, and to approve each bunny.net resource it wants to create.</p>
<!--kg-card-end: html-->
<p>Your script now sits on the same account as the rest of the bunny.net platform. <a href="https://bunny.net/blog/were-making-bunny-dns-free/" rel="noreferrer">Bunny DNS is free</a> for up to 500 domains with no query fees, so you can host the domain your old val answered on and point it at the script, and you aren&apos;t limited to one script. The pull zone in front of your script is <a href="https://bunny.net/cdn/" rel="noreferrer">Bunny CDN</a>, and <a href="https://bunny.net/shield/" rel="noreferrer">Bunny Shield</a>, <a href="https://bunny.net/optimizer/" rel="noreferrer">Bunny Optimizer</a>, <a href="https://bunny.net/stream/" rel="noreferrer">Bunny Stream</a>, and <a href="https://bunny.net/magic-containers/" rel="noreferrer">Magic Containers</a> are there when a small project grows into something bigger.</p><p>If something in your migration doesn&apos;t behave, come and ask in the <a href="https://discord.com/invite/bunnynet" rel="noreferrer">bunny.net Discord</a>. We&apos;d like to hear which vals you&apos;re bringing over, and if any would make good templates for others, reach out and I&apos;ll get them added.</p>]]></content:encoded></item><item><title><![CDATA[Import a video library into Bunny Stream with the bunny.net CLI]]></title><description><![CDATA[Move your video library to Bunny Stream from Vimeo, Wistia, Mux, Cloudflare Stream, JW Player, Brightcove, or S3 using the bunny.net CLI.]]></description><link>https://bunny.net/blog/import-a-video-library-into-bunny-stream-with-the-bunny-net-cli/</link><guid isPermaLink="false">6aec832a8b5fed851dd542ee</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Jamie Barton]]></dc:creator><pubDate>Thu, 05 Nov 2026 14:22:05 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/image--44-.png" medium="image"/><content:encoded><![CDATA[
<!--kg-card-begin: html-->
<img src="https://bunny.net/blog/content/images/2026/11/image--44-.png" alt="Import a video library into Bunny Stream with the bunny.net CLI"><p>Earlier this year, we published a <a href="https://bunny.net/blog/how-to-migrate-from-vimeo-to-bunny-stream/">guide to migrating a Vimeo library into Bunny Stream</a>. It covered three routes: download and re-upload by hand, paste a URL into the dashboard, or point the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">vimeo2bunny</code> CLI at your account and let it walk the whole library.</p>
<!--kg-card-end: html-->
<p>Vimeo turned out to be the first of many. The same question kept coming for Wistia, Mux, Cloudflare Stream, JW Player, Brightcove, and for folders of MP4s sitting in an S3 bucket. Each platform hides its download URL somewhere different and has its own idea of what a folder is, so every one of them needed its own adapter.</p>
<!--kg-card-begin: html-->
<p><strong>Today we&#x2019;re introducing a new migration tool that lives in the bunny.net CLI</strong>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">bunny stream import</code>. Seven sources, one command, and the same flags no matter which platform you&apos;re leaving.</p>
<!--kg-card-end: html-->
<p>Getting started is easy:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">npm</span> <span style="color:#c0392b;">install</span> -g @bunny.net/cli
bunny login
bunny stream <span style="color:#c0392b;">import</span></code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">import</code> asks which Stream library the videos should land in, which platform they&apos;re coming from, and for the credentials that platform needs. Then it starts the transfer. Add <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--dry-run</code> to see the plan before anything moves.</p>
<!--kg-card-end: html-->
<h2 id="how-it-works">How it works</h2><p>Nothing passes through your machine. For each video, the CLI asks the source platform for a download URL and hands it to Bunny Stream&apos;s fetch endpoint. We pull the file straight from Vimeo, S3, or wherever it lives, so neither your disk space nor your connection speed limits how much you can move.</p><p>The command returns as soon as every video is queued with Bunny Stream. Fetching and encoding carry on in the background, so a library of thousands of videos doesn&apos;t hold your terminal open for hours. Check on it whenever you like:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>bunny stream <span style="color:#c0392b;">import</span> status --lib <span style="color:#c0392b;">12345</span> --source vimeo</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">status</code> lists each video with its Bunny status, encoding progress, and size. If a video remains  at zero bytes for more than 30 minutes, it&apos;s marked as stalled. This usually means the fetch failed quietly on the source side. Run the import again with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--retry-stalled</code> to replace it.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<aside style="background-color:#E1F2FF; border-radius:10px; padding:20px 15px; margin-bottom:30px; color:#183D6D;">
  <div style="display:flex; align-items:flex-start; gap:10px;">
    <span style="flex-shrink:0;">&#x26A0;&#xFE0F;</span>
    <p style="margin:0; color:#183D6D;">
      Videos from failed imports may remain in your video library. Pass <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--clean-failed</code> to delete them before importing them again.
    </p>
  </div>
</aside>
<!--kg-card-end: html-->
<p>Getting the download URL is the part that differs per platform, and it&apos;s the work the command exists to abstract away:</p>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
<thead>
<tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
<th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Source</th>
<th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Where the download URL comes from</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Vimeo</td>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">API download links, available on a Standard plan and above</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">AWS S3</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">A pre-signed <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">GetObject</code> URL, signed with your AWS credentials</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Wistia</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Data API asset URLs, preferring the original file, then the best MP4 rendition</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Mux</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Master access or static MP4 renditions enabled before import; assets with neither are skipped</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Cloudflare Stream</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">The <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">/downloads</code> endpoint, polled until the MP4 is ready</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">JW Player</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">The adapter reads the highest-resolution MP4 from the Management API first, then the public Delivery API</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Brightcove</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">CMS API sources, with OAuth tokens refreshed as they expire</td>
</tr>
</tbody>
</table>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<aside style="background-color:#E1F2FF; border-radius:10px; padding:20px 15px; margin-bottom:30px; color:#183D6D;">
  <div style="display:flex; align-items:flex-start; gap:10px;">
    <span style="flex-shrink:0;">&#x26A0;&#xFE0F;</span>
    <p style="margin:0; color:#183D6D;">
      Videos that require signed URLs can&apos;t be fetched.
      Cloudflare Stream videos with Require Signed URLs enabled are skipped.
      If URL signing is turned on for a JW Player property, the import stops with an explanation.
    </p>
  </div>
</aside>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Folders come across too. Vimeo folders, Wistia folders, Brightcove folders, and the top-level S3 prefixes (under <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--prefix</code>, if you set one) become Bunny Stream collections with matching names. Deeper S3 prefixes roll up into their top-level collection. Mux, Cloudflare Stream, and JW Player have no folder concept, so everything from those lands as uncategorized. <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--folder</code> limits a run to a single source folder.</p>
<!--kg-card-end: html-->
<p>Titles, descriptions, and tags copy over wherever the source API provides them.</p><h3 id="importing-from-cloudflare-stream">Importing from Cloudflare Stream</h3>
<!--kg-card-begin: html-->
<p>Cloudflare needs an API token with the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">Stream:Edit</code> permission and your account ID:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">export</span> CLOUDFLARE_API_TOKEN=...
<span style="color:#c0392b;">export</span> CLOUDFLARE_ACCOUNT_ID=...

bunny stream <span style="color:#c0392b;">import</span> --source cloudflare --lib <span style="color:#c0392b;">12345</span> --dry-run
bunny stream <span style="color:#c0392b;">import</span> --source cloudflare --lib <span style="color:#c0392b;">12345</span>
bunny stream <span style="color:#c0392b;">import</span> status --lib <span style="color:#c0392b;">12345</span> --source cloudflare</code></pre>
<!--kg-card-end: html-->
<p>For each video, the CLI reuses an existing MP4 download or asks Cloudflare to generate one, then waits for it to be ready before handing the URL to Bunny Stream. Videos with Require Signed URLs enabled can&#x2019;t be fetched, so disable that setting for those videos before importing.</p>
<!--kg-card-begin: html-->
<p>That&#x2019;s it. Each video is tagged with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">cfStreamId</code>, so a second run later only picks up what&apos;s new.</p>
<!--kg-card-end: html-->
<h3 id="stop-re-run-resume">Stop, re-run, resume</h3>
<!--kg-card-begin: html-->
<p>Every video that lands in Bunny Stream carries a metaTag that identifies its source video, such as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">vimeoId</code>, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">muxAssetId</code>, or <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">cfStreamId</code>. For S3 it&#x2019;s a hash of the bucket and key, so your bucket layout never shows up in public embeds. </p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Run the import again and the CLI skips anything already tagged. Videos Bunny Stream is still processing are left alone. Videos that failed during processing are imported again, unless the file itself was rejected due to an unsupported resolution or duration, or a corrupt original. Add <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--clean-failed</code> to retry those too.</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
<thead>
<tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
<th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">metaTag Source</th>
<th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Title</th>
<th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Description</th>
<th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Tags</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Vimeo</td>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; Video name</td>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
<td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">AWS S3</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; From the object key</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; From the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">description</code> object metadata</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; From the <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">tags</code> object metadata (comma-separated)</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Wistia</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; Media name</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x274C;</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Mux</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; From <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">meta.title</code>, falling back to <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">passthrough</code></td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x274C;</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x274C;</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Cloudflare Stream</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; From <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">meta.name</code></td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x274C;</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">JW Player</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; Media title</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
</tr>
<tr>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Brightcove</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705; Video name</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
<td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">&#x2705;</td>
</tr>
</tbody>
</table>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>If a run gets interrupted or finishes with failures, you can pick it up with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--resume</code>. It retries the failed videos and keeps the folder scope of the original run. State is saved per source and per library, so imports into different libraries, or from different sources, can run at the same time.</p>
<!--kg-card-end: html-->
<p>Like the rest of the bunny.net CLI, every prompt has a flag and an environment variable behind it, which works great if you want to automate the import process.</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>VIMEO_ACCESS_TOKEN=... bunny stream <span style="color:#c0392b;">import</span> --source vimeo --lib <span style="color:#c0392b;">12345</span> --force --output json
bunny stream <span style="color:#c0392b;">import</span> status --lib <span style="color:#c0392b;">12345</span> --source vimeo --output json</code></pre>
<!--kg-card-end: html-->
<p>A few platforms charge for, or gate, the download that makes this work:</p><ul><li>Vimeo only exposes video files on Standard plans and above, or on a legacy Plus, PRO, Business, or Premium plan. The CLI takes the original download link where there is one and falls back to the highest-resolution MP4, and both need one of those plans.</li><li>Mux needs either temporary master access, which the CLI prefers, or static MP4 renditions on a public playback ID. Master URLs expire 24 hours after Mux prepares them, so run the import soon after you turn master access on.</li><li>Cloudflare Stream MP4 downloads add no storage cost, but Cloudflare bills for each download based on the video&#x2019;s duration. Bunny Stream&apos;s fetch counts as one download per video.</li><li>Wistia asset URLs bypass their analytics and count toward your bandwidth.</li></ul><p>As with the Vimeo guide, the import is for content you own or have permission to move.</p><h2 id="embed-bunny-player">Embed Bunny Player</h2>
<!--kg-card-begin: html-->
<p>Every video that lands in Bunny Stream plays in Bunny Player, so the final step of the move is replacing your existing embeds with it. Each imported video carries its source ID as a metaTag, such as <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">vimeoId</code>, so you can match your old embeds to the new videos. List the library to see each video&apos;s ID:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>bunny stream videos list --lib <span style="color:#c0392b;">12345</span></code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Bunny Player uses an iframe, so the embed is one element pointed at the library ID and video ID. <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">bunny stream videos embed &lt;video-id&gt;</code> prints the URL for you:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>&lt;<span style="color:#c0392b;">iframe</span>
  src=<span style="color:#6a8e2f;">&quot;&lt;https://player.mediadelivery.net/embed/12345/your-video-guid&gt;&quot;</span>
  loading=<span style="color:#6a8e2f;">&quot;lazy&quot;</span>
  style=<span style="color:#6a8e2f;">&quot;width: 100%; aspect-ratio: 16 / 9; border: 0&quot;</span>
  allow=<span style="color:#6a8e2f;">&quot;autoplay; encrypted-media; picture-in-picture; fullscreen&quot;</span>
  allowfullscreen
&gt;&lt;/<span style="color:#c0392b;">iframe</span>&gt;</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>The framework guides wrap that iframe in a component and drive playback from your own code with player.js. The React guide ends up with a <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">BunnyPlayer</code> component that takes the same two IDs and forwards the player&apos;s events:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>&lt;<span style="color:#c0392b;">BunnyPlayer</span>
  libraryId=<span style="color:#6a8e2f;">&quot;12345&quot;</span>
  videoId=<span style="color:#6a8e2f;">&quot;your-video-guid&quot;</span>
  onEnded={() =&gt; console.log(<span style="color:#6a8e2f;">&quot;Video finished&quot;</span>)}
/&gt;</code></pre>
<!--kg-card-end: html-->
<p>There are guides for <a href="https://docs.bunny.net/stream/player/react">React</a>, <a href="https://docs.bunny.net/stream/player/nextjs">Next.js</a>, <a href="https://docs.bunny.net/stream/player/vue">Vue/Nuxt</a>, and <a href="https://docs.bunny.net/stream/player/svelte">Svelte/SvelteKit</a>, and the Next.js one includes a client component that holds up under server rendering. The videos that sat on your old platform last week now play on your own site.</p><p>Before you publish the new embeds, check who can watch them. The import copies videos, not privacy settings, and a new library plays on any site. A video that was private or unlisted on your old platform is public on Bunny Stream until you lock the library down. Restrict playback to your own domain and require signed embed URLs:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>bunny stream libraries security update <span style="color:#c0392b;">12345</span> --allow-referrer example.com --embed-token</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>With embed tokens on, <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">bunny stream videos embed &lt;video-id&gt; --expires 1h</code> prints a signed URL. In production, sign a short-lived URL on your server for each page view, using the library&apos;s token key. A copied or bookmarked link stops working once it expires.</p>
<!--kg-card-end: html-->
<h2 id="start-your-migration">Start your migration</h2><p>Install the CLI, log in, and do a dry run to see what would move:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">npm</span> <span style="color:#c0392b;">install</span> -g @bunny.net/cli
bunny login
bunny stream <span style="color:#c0392b;">import</span> --dry-run</code></pre>
<!--kg-card-end: html-->
<p>The CLI is open source and built in public. If something&apos;s broken or the platform you&apos;re leaving isn&apos;t supported yet, open an issue on <a href="https://github.com/BunnyWay/cli/issues">GitHub</a>, or come and tell us how your move went in <a href="https://discord.com/invite/bunnynet">Discord</a>.</p><h3 id="additional-resources">Additional resources</h3><ul><li><a href="https://bunny.net/docs/stream/migrate-from-vimeo" rel="noreferrer">Migrate from Vimeo to Bunny Stream</a></li><li><a href="https://bunny.net/docs/stream/migrate-from-cloudflare-stream" rel="noreferrer">Migrate from Cloudflare Stream to Bunny Stream</a></li><li><a href="https://bunny.net/docs/stream/migrate-from-mux" rel="noreferrer">Migrate from Mux to Bunny Stream</a></li><li><a href="https://docs.bunny.net/stream/embedding" rel="noreferrer">Embedding videos</a></li></ul>]]></content:encoded></item><item><title><![CDATA[It's just a video. How hard can it be?]]></title><description><![CDATA[We surveyed 509 teams using Bunny Stream to understand the biggest challenges of running video in 2026, including infrastructure complexity, rising costs, AI adoption, and newer video codecs.]]></description><link>https://bunny.net/blog/running-video-in-2026-report/</link><guid isPermaLink="false">6ae87b778b5fed851dd542a0</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Nathan Zerafa]]></dc:creator><pubDate>Mon, 02 Nov 2026 15:01:37 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/11/Untitled_Artwork-269-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/11/Untitled_Artwork-269-1.png" alt="It&apos;s just a video. How hard can it be?"><p><strong>What 509 teams told us about running video, and what to do about it.</strong></p><p><em>Written for product and engineering teams building or managing video-powered platforms, including OTT and streaming services, EdTech, UGC apps, and white-label video solutions.</em></p><p>We surveyed 509 teams using Bunny Stream to understand the biggest challenges of running video in 2026, including infrastructure complexity, rising costs, AI adoption, and newer video codecs.</p>
<!--kg-card-begin: html-->
<div style="position:relative;padding-top:56.25%;"><iframe src="https://player.mediadelivery.net/embed/797290/d3814c12-6287-4bfb-bf9a-b41f4ce22a44?autoplay=false&amp;loop=false&amp;muted=false&amp;preload=true&amp;responsive=true" loading="lazy" style="border:0;position:absolute;top:0;height:100%;width:100%;" allow="accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;fullscreen;" allowfullscreen="true"></iframe></div>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<div style="height: 32px;"></div>
<!--kg-card-end: html-->
<p>Here are four key takeaways and what they could mean for your video platform.</p><h3 id="tldr">TL;DR</h3><ul><li><strong>77% want less complexity.</strong> Teams use managed platforms to avoid handling encoding and delivery themselves. <strong>Consider:</strong> Where could you reduce operational overhead?</li><li><strong>63% struggle to predict bandwidth costs; 50% say the same about storage.</strong> Both become harder to manage as video usage grows. <strong>Consider:</strong> How will growth affect your costs?</li><li><strong>59% aren&apos;t using AI in production.</strong> Those who do focus on practical applications like transcription and translation. <strong>Consider:</strong> Where could AI deliver real value?</li><li><strong>14% use AV1; 38% are interested in newer codecs but have no adoption plan.</strong> Bandwidth savings need to justify the implementation effort. <strong>Consider:</strong> Would newer codecs benefit your platform?</li></ul>
<!--kg-card-begin: html-->
<h3>Jump to section:</h3>

<ul>
  <li><a href="#complexity-is-the-real-cost">Complexity is the real cost</a></li>
  <li><a href="#bandwidth-and-storage-the-costs-you-cant-predict">Bandwidth and storage: The costs you can&apos;t predict</a></li>
  <li><a href="#ai-adoption-lags-behind-the-hype">AI adoption lags behind the hype</a></li>
  <li><a href="#newer-codecs-high-interest-limited-adoption">Newer codecs: High interest, limited adoption</a></li>
</ul>
<!--kg-card-end: html-->
<p><a href="https://pitch.com/v/report-video-in-2026-gnjwv4" rel="noopener noreferrer">Or download the Running video in 2026 report here.</a></p><hr>
<!--kg-card-begin: html-->
<div style="height: 32px;"></div>
<!--kg-card-end: html-->
<p>For viewers, video is simple. Press play, watch, move on.</p><p>Behind that play button, there&apos;s encoding, storage, delivery, playback compatibility, and an infrastructure bill that can grow unexpectedly.</p><p>Whether you&apos;re running an OTT service, an online learning platform, or a video-driven app, managing those moving parts becomes more challenging as your audience and content library grow.</p><p>Our <a href="https://pitch.com/v/report-video-in-2026-gnjwv4"><strong>Running video in 2026 report</strong></a> examines how teams handle these challenges. Let&apos;s look at what the findings mean for your video operations.</p>
<!--kg-card-begin: html-->
<h2 id="complexity-is-the-real-cost">1. Complexity is the real cost</h2>
<!--kg-card-end: html-->
<p><strong>77% of respondents use a managed video platform to avoid handling encoding and delivery themselves.</strong></p><p>Only 41% selected predictable costs as a reason, and just 10% selected cost without also selecting complexity.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.34.52-1.png" class="kg-image" alt="It&apos;s just a video. How hard can it be?" loading="lazy" width="2000" height="1121" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/Screenshot-2026-11-02-at-15.34.52-1.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/Screenshot-2026-11-02-at-15.34.52-1.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/Screenshot-2026-11-02-at-15.34.52-1.png 1600w, https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.34.52-1.png 2000w" sizes="(min-width: 720px) 720px"></figure><h3 id="why-complexity-matters">Why complexity matters</h3><p>Running video involves more than hosting files and making them available to viewers.</p><p>There&apos;s the technical side: encoding, storage, adaptive bitrate streaming, and delivering content across different regions. Then there&apos;s playback. Videos need to work across browsers, smartphones, connected TVs, and varying network conditions. And finally, there&apos;s the operational work: managing providers, integrations, invoices, usage limits, and troubleshooting. The challenges vary depending on your platform.</p><ul><li>An <strong>OTT streaming provider</strong> might need to handle sudden audience spikes during live events while maintaining consistent playback across devices.</li><li>A <strong>social media or UGC platform</strong> might deal with unpredictable upload volumes and multiple video formats.</li><li>Meanwhile, <strong>white-label video providers</strong> need infrastructure that supports several customers, each with different requirements.</li></ul><p>One Bunny Stream customer shared that they previously relied on 10 to 12 separate services to support their video workflows, including playback across multiple devices.</p><p>Each additional service can introduce another integration, billing cycle, or potential point of failure.</p><h3 id="what-this-means-for-your-team">What this means for your team</h3><p>Managing several services isn&apos;t necessarily a problem, especially when each serves a specific purpose. But as your platform grows, it&apos;s worth evaluating how much engineering time goes into maintaining your existing video infrastructure.</p><p>Could consolidating certain services reduce the work your team handles? Are there workflows that a managed platform could handle?</p><p>The findings suggest that teams value the operational work a platform removes, not just the technology it provides.</p><p><strong>When evaluating video infrastructure, consider the resources required to manage it, as well as performance, features, and price.</strong></p>
<!--kg-card-begin: html-->
<h2 id="bandwidth-and-storage-the-costs-you-cant-predict">2. Bandwidth and storage: The costs you can&apos;t predict</h2>
<!--kg-card-end: html-->
<p>Two costs stood out in our survey:</p><ul><li><strong>63%</strong> identified CDN bandwidth as one of their hardest costs to control or predict.</li><li><strong>50%</strong> said the same about video storage.</li></ul><p>A quarter of respondents selected both.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.20-1.png" class="kg-image" alt="It&apos;s just a video. How hard can it be?" loading="lazy" width="2000" height="1109" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/Screenshot-2026-11-02-at-15.35.20-1.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/Screenshot-2026-11-02-at-15.35.20-1.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/Screenshot-2026-11-02-at-15.35.20-1.png 1600w, https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.20-1.png 2000w" sizes="(min-width: 720px) 720px"></figure><p>We asked which costs were hardest to control, rather than which represented the largest share of spending.</p><h3 id="why-these-costs-are-difficult-to-control">Why these costs are difficult to control</h3><p>Bandwidth and storage respond to different aspects of video usage.</p><p>Bandwidth depends heavily on how much content viewers consume. An increase in viewing time, audience size, or delivered bitrate can increase the amount of data transferred.</p><ul><li>For an OTT service, a popular release or live event could generate a sudden increase in traffic.</li><li>A mobile-first video platform might see a particular series gain popularity and drive significantly more viewing than expected.</li></ul><p>Storage presents a different challenge.</p><p>An <strong>EdTech provider</strong> might retain courses for years, while a <strong>UGC platform</strong> might receive thousands of new uploads without knowing which ones will attract viewers.</p><p>For platforms with growing libraries, storage requirements can accumulate even when viewership stays relatively stable.</p><p>Storage can become an operational challenge as well as a financial one.</p><h3 id="what-this-means-for-your-team-1">What this means for your team</h3><p>Understanding your usage patterns can help you anticipate how costs might change.</p><p>A relatively small library with high viewership can generate substantial bandwidth usage. A large archive of rarely watched content may have a very different cost profile.</p><p>Consider how your video usage might evolve as your audience grows, your catalog expands, or you enter new markets.</p><p>When comparing providers, it&apos;s also worth understanding what you&apos;re paying for and how pricing changes with usage.</p><p>Features such as encoding, content protection, and captions may introduce additional costs depending on the platform.</p><p><strong>The goal is to understand how your infrastructure costs could change as your business grows, rather than evaluating providers based solely on today&apos;s usage.</strong></p>
<!--kg-card-begin: html-->
<h2 id="ai-adoption-lags-behind-the-hype">3. AI adoption lags behind the hype</h2>
<!--kg-card-end: html-->
<p>AI has become a major topic across the video industry, with applications spanning content creation, localization, accessibility, and video processing.</p><p>But our survey found that <strong>59% of respondents have no AI video features running in production.</strong></p><p>Among those who do use AI, transcription, caption translation, and audio translation are the most popular features.</p><p>Teams using AI have an average of 2.4 features in production.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.05-1.png" class="kg-image" alt="It&apos;s just a video. How hard can it be?" loading="lazy" width="2000" height="1065" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/Screenshot-2026-11-02-at-15.35.05-1.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/Screenshot-2026-11-02-at-15.35.05-1.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/Screenshot-2026-11-02-at-15.35.05-1.png 1600w, https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.05-1.png 2000w" sizes="(min-width: 720px) 720px"></figure><h3 id="what-teams-are-using-ai-for">What teams are using AI for</h3><p>Many of the most widely adopted AI features address existing operational needs.</p><ul><li>Transcription can generate text versions of video content, while translation helps make content available to audiences in additional languages.</li><li>Encoding optimization can also help improve delivery efficiency.</li><li>For an educational platform, automated transcription could support accessibility and make learning materials easier to navigate.</li><li>An OTT provider expanding internationally might benefit more from translation, while a UGC platform could find opportunities in content moderation or metadata generation.</li></ul><p>The value depends on what the platform needs.</p><p>One customer shared that they only use AI transcription when content arrives without subtitles. If the supplier already provides them, there&apos;s no need to generate them again.</p><h3 id="what-this-means-for-your-team-2">What this means for your team</h3><p>Nearly 40% of respondents who use AI in production have implemented <strong>only one feature</strong>.</p><p>For teams exploring AI, a focused approach may be more useful than introducing several features at once.</p><p>Consider which activities require the most manual work or where automation could improve the experience for viewers.</p><p>That could mean accessibility, localization, encoding optimization, or content management.</p><p><strong>Evaluate AI based on the problems it can solve for your platform, rather than the number of features available.</strong></p>
<!--kg-card-begin: html-->
<h2 id="newer-codecs-high-interest-limited-adoption">4. Newer codecs: High interest, limited adoption</h2>
<!--kg-card-end: html-->
<p>Video codecs determine how video is compressed, affecting the amount of data required to store and deliver content at a given quality.</p><p>H.264 remains widely supported across devices and browsers. Newer codecs, such as HEVC (H.265) and AV1, can offer better compression efficiency, potentially reducing bandwidth consumption while maintaining comparable visual quality.</p><p>Given how many teams find with bandwidth costs difficult to predict or control, newer codecs offer an opportunity to improve delivery efficiency.</p><p>But adoption remains limited.</p><p><strong>Only 14% of respondents currently use AV1.</strong></p><p>While 38% are interested in newer codecs, they have no concrete adoption plans. Just 9% plan to adopt one within the next 12 months.</p><p>Meanwhile, 29% continue to use H.264 exclusively.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.14-1.png" class="kg-image" alt="It&apos;s just a video. How hard can it be?" loading="lazy" width="2000" height="1082" srcset="https://bunny.net/blog/content/images/size/w600/2026/11/Screenshot-2026-11-02-at-15.35.14-1.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/11/Screenshot-2026-11-02-at-15.35.14-1.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/11/Screenshot-2026-11-02-at-15.35.14-1.png 1600w, https://bunny.net/blog/content/images/2026/11/Screenshot-2026-11-02-at-15.35.14-1.png 2000w" sizes="(min-width: 720px) 720px"></figure><h3 id="why-teams-are-taking-their-time">Why teams are taking their time</h3><p>Better compression can reduce delivery costs, but adopting a new codec introduces additional work. Teams may need to re-encode existing content, support multiple formats, and test playback compatibility across devices. Depending on their setup, they might also need to store multiple versions of the same video.</p><p>The potential savings also vary across platforms.</p><ul><li>A service with a large library of frequently watched videos could benefit considerably from more efficient compression over time.</li><li>A platform publishing short-lived content might have different priorities.</li></ul><p>Device compatibility matters too. A service targeting connected TVs, for example, may face different playback requirements than a mobile-first video platform.</p><p>Interestingly, 73% of respondents using newer codecs identified bandwidth as a difficult cost to control, compared with 65% of respondents using only H.264.</p><p>This doesn&apos;t tell us why teams adopted newer codecs, but it shows that bandwidth remains a concern even among those already using them.</p><h3 id="what-this-means-for-your-team-3">What this means for your team</h3><p>Newer codecs offer opportunities to optimize video delivery, but the benefits need to justify the implementation effort.</p><p>Consider your audience&apos;s devices, viewing habits, content library, and bandwidth requirements.</p><p>For platforms with high delivery volumes, better compression could create meaningful long-term savings. For others, playback compatibility and operational requirements may take priority.</p><p><strong>Your codec strategy should reflect how your audience consumes video and what your platform needs to support.</strong></p><h2 id="how-bunny-stream-approaches-these-challenges">How Bunny Stream approaches these challenges</h2><p>At bunny.net, we&apos;ve built Bunny Stream to help teams manage the infrastructure behind video without having to maintain every component separately.</p><p>Bunny Stream brings encoding, storage, delivery, and playback together in one platform, powered by bunny.net&apos;s own storage and global CDN infrastructure.</p><p>Whether you&apos;re operating an educational platform, building a streaming service, or integrating video into another product, Bunny Stream helps reduce the operational work involved in delivering video.</p><p>Simplifying infrastructure doesn&apos;t eliminate the need to plan for bandwidth, storage, or future requirements, but it can reduce the number of systems your team needs to maintain.</p><h2 id="theres-more-behind-the-play-button">There&apos;s more behind the play button</h2><p>Our survey highlights several challenges shared by video teams across different industries and business models.</p><p>For some, the priority is simplifying infrastructure. For others, it&apos;s understanding how costs will change with growth or deciding which new technologies are worth adopting.</p><p>The right approach depends on how your platform operates, what your audience needs, and where you expect your business to grow.</p><p><strong>Want to see how your challenges compare with those of other video teams?</strong></p><p>Explore the complete findings, charts, and recommendations in our <a href="https://pitch.com/v/report-video-in-2026-gnjwv4"><strong>Running video in 2026 report</strong></a>.</p><p>And if you&apos;re exploring ways to simplify your video infrastructure, <a href="https://bunny.net/docs/stream" rel="noreferrer"><strong>take a look at Bunny Stream</strong></a>.</p><p><em>About the research: bunny.net surveyed 509 teams through an in-product questionnaire in September 2026. Respondents already used managed video infrastructure, and 291 completed all four questions. Results represent the respondents to each question, and participants could select multiple answers. The survey did not collect industry, company size, or regional breakdowns. Industry examples in this article illustrate how the findings may apply to different types of video businesses rather than representing industry-specific survey results.</em></p>]]></content:encoded></item><item><title><![CDATA[We cut our CI bill by 85% by running GitHub Actions on Magic Containers]]></title><description><![CDATA[We started self-hosting GitHub Actions runners on Magic Containers and cut our CI bill from $407 to $60 a month. Here’s a more about the setup.]]></description><link>https://bunny.net/blog/we-cut-our-ci-bill-by-85-by-running-github-actions-on-magic-containers/</link><guid isPermaLink="false">6ae2fb6b8b5fed851dd5423d</guid><category><![CDATA[Compute]]></category><dc:creator><![CDATA[Dmytro Demchenko]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:46:56 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/bunny.net-actions-on-magic-containers.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/10/bunny.net-actions-on-magic-containers.png" alt="We cut our CI bill by 85% by running GitHub Actions on Magic Containers"><p>A few weeks after I joined the company, I pressed the button to run our regression suite and got a message I didn&apos;t expect. It said we were out of GitHub Actions budget.</p><p>Today our CI runs on <a href="https://bunny.net/magic-containers/">Magic Containers</a>, our container platform, instead of GitHub-hosted runners. Four toolchains run there, .NET, Node, Rust and Python, across different repos and teams. For the Magic Containers project alone, our measured CI usage works out to about $407 a month on GitHub-hosted runners versus $60 on Magic Containers.</p><p>This is how we got there, how it works, and what I&apos;d tell you before you try it yourself.</p><h2 id="two-yellow-flags">Two yellow flags</h2><p>Before that budget message appeared, there were other things that made me reconsider our approach. My freshly built regression framework on GitHub Actions worked for the most part until one day, it stopped.</p><p>Tests that had passed an hour earlier started failing, and no new feature explained it. That was the first yellow flag. GitHub&apos;s runners were in the US at the time, and some of them couldn&apos;t reliably reach our CDN endpoints. The failures had nothing to do with our code. For someone in QA, that&apos;s the worst kind of failure, because you stop trusting a red result.</p><p>The second flag was speed. Regression took around 28 to 30 minutes per thousand test cases. I tried running it in parallel, and it barely helped.</p><h2 id="we-already-had-the-servers">We already had the servers</h2><p>My first thought was maybe we can get some hardware. I asked around with the idea of buying a server and putting it in the office. Someone even offered their old laptop for the pilot project, which would have worked right up until it went offline on a weekend with nobody around.</p><p>Then it struck me (yes, only then) that we already run servers all over the world. We&#x2019;ve got Magic Containers, why not run CI there?</p><p>I built my first runner, and the results were good straight away. I could scale it up and down however I wanted. A few weeks later the budget message appeared, and the decision made itself. I did the math on what we were spending on CI minutes, and it was a lot of money for nothing. I&apos;ve always thought that money you don&apos;t spend is money you&apos;ve earned.</p><h2 id="the-day-it-stuck">The day it stuck</h2><p>For a while this was mostly my side project, and I kept improving it by making runners heal themselves when a container crashed, so a failure on our side would never block anyone. Then a colleague posted that we were hitting our GitHub limits again. And it was our time to shine! So I said it was a simple switch, we can move to our runners, and if anything went wrong, we could switch back in seconds.</p><p>We switched, and after that nobody needed convincing. Regression has now run on these runners for over a year, and other teams have followed.</p><h2 id="the-numbers">The numbers</h2><p>CI for the Magic Containers project, the control plane and QA suite together, measured from 1 to 19 October and scaled to a month:</p>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;"></th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Minutes a month</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Per month</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Per year</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">GitHub-hosted runners</td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">67,905</td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$407</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">$4,884</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Magic Containers</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">45,270</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$60</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$720</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><strong>Change</strong></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><strong>&#x2212;85%</strong></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"></td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<p>There are two reasons for this:</p><ul><li><strong>Our machines are bigger:</strong> GitHub&apos;s standard runner has 2 cores and 7 GB of memory. Ours have 8 cores and 32 GiB, so the same jobs take about 1.5x less time.</li><li><strong>We pay for what jobs use:</strong> Magic Containers bills CPU by the second of CPU time and memory in 64 MB blocks per hour. So 8 cores and 34 GB is the most a job can use, not what we pay for. GitHub Team charges $0.006 a minute for a Linux runner once the 3,000 included minutes run out.</li></ul><p>The important thing here is also that Magic Containers figures are list price, so what you would pay to run the same apps. Whatever still runs on GitHub comes to about 2,280 minutes a month, inside the 3,000 the plan includes. So we pay GitHub nothing for CI now.</p><h2 id="will-your-workflow-run">Will your workflow run?</h2>
<!--kg-card-begin: html-->
<p>When I offered other teams these runners, nobody asked about cost first. They asked whether their existing workflows would still work. Most workflows lean on ready-made actions pulled in with <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">uses:</code>, like <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">actions/checkout</code>, and whether one works depends on how it&apos;s built.</p>
<!--kg-card-end: html-->
<p>There are three kinds of action:</p><ul><li><strong>JavaScript actions</strong> run on Node, which is already on the runner. These work.</li><li><strong>Composite actions</strong> are a list of shell steps. These work.</li><li><strong>Docker container actions</strong> need a Docker daemon, and a sandbox doesn&apos;t have one. These don&apos;t start.</li></ul>
<!--kg-card-begin: html-->
<p>You can tell which kind you have from the action&apos;s <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">action.yml</code>. This one won&apos;t run:</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#2a5599;">runs</span>:
  <span style="color:#2a5599;">using</span>: <span style="color:#6a8e2f;">&apos;docker&apos;</span>
  <span style="color:#2a5599;">image</span>: <span style="color:#6a8e2f;">&apos;Dockerfile&apos;</span></code></pre>
<!--kg-card-end: html-->
<p>This one will:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#2a5599;">runs</span>:
  <span style="color:#2a5599;">using</span>: <span style="color:#6a8e2f;">&apos;node20&apos;</span>
  <span style="color:#2a5599;">main</span>: <span style="color:#6a8e2f;">&apos;dist/index.js&apos;</span></code></pre>
<!--kg-card-end: html-->
<p>If you depend on a Docker action, you have three options. Find a JavaScript equivalent, inline the command the action wraps, or leave that one job on a GitHub runner. The ones we hit were wrappers around a single CLI call, so I inlined them.</p><h2 id="what-stays-on-github">What stays on GitHub</h2><p>Building a container image needs a daemon, and there&apos;s no way around that, so those jobs still run on GitHub&apos;s machines. Image builds are a small share of total CI time, which is why the leftovers fit inside the free allowance.</p><ul><li><strong>GitHub:</strong> anything that needs a daemon, so image builds and registry pushes</li><li><strong>Your own machines:</strong> compile, test, lint, package</li></ul><p>One repository variable moves the line, and you never edit a workflow file:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#2a5599;">jobs</span>:
  <span style="color:#2a5599;">build</span>:
    <span style="color:#2a5599;">runs-on</span>: ${{ <span style="color:#c0392b;">fromJSON</span>(vars.CI_RUNNER || <span style="color:#6a8e2f;">&apos;[&quot;ubuntu-latest&quot;]&apos;</span>) }}</code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Set <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">CI_RUNNER</code> to your runner labels and the repo moves across. Clear it and everything goes back to GitHub. That&apos;s also how you roll back if something breaks.</p>
<!--kg-card-end: html-->
<h2 id="setting-up-a-runner">Setting up a runner</h2><p>A runner image is a base image, your toolchain, the Actions runner binary, and a start script:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">FROM</span> ubuntu:24.04
<span style="color:#c0392b;">RUN</span> apt-get update &amp;&amp; apt-get install -y --no-install-recommends \
    ca-certificates curl jq git tar gzip &amp;&amp; rm -rf /var/lib/apt/lists/*
<span style="color:#c0392b;">RUN</span> apt-get update &amp;&amp; apt-get install -y --no-install-recommends dotnet-sdk-8.0

<span style="color:#c0392b;">ARG</span> RUNNER_VERSION=2.337.0
<span style="color:#c0392b;">WORKDIR</span> /opt/actions-runner
<span style="color:#c0392b;">RUN</span> curl -fsSL <span style="color:#6a8e2f;">&quot;https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz&quot;</span> | tar -xz

<span style="color:#c0392b;">COPY</span> entrypoint.sh /entrypoint.sh
<span style="color:#c0392b;">ENTRYPOINT</span> [<span style="color:#6a8e2f;">&quot;/entrypoint.sh&quot;</span>]</code></pre>
<!--kg-card-end: html-->
<p>Registration tokens are single use and expire in about an hour, so the start script asks GitHub for a fresh one every time the container boots:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#8a94a6;">#!/usr/bin/env bash</span>
<span style="color:#c0392b;">set</span> -euo pipefail
repo=<span style="color:#6a8e2f;">&quot;${GH_RUNNER_URL#https://github.com/}&quot;</span>
token=$(<span style="color:#c0392b;">curl</span> -fsSL -X POST \
  -H <span style="color:#6a8e2f;">&quot;Authorization: Bearer ${GH_PAT}&quot;</span> \
  -H <span style="color:#6a8e2f;">&quot;Accept: application/vnd.github+json&quot;</span> \
  <span style="color:#6a8e2f;">&quot;https://api.github.com/repos/${repo}/actions/runners/registration-token&quot;</span> | <span style="color:#c0392b;">jq</span> -r .token)

<span style="color:#c0392b;">./config.sh</span> --url <span style="color:#6a8e2f;">&quot;${GH_RUNNER_URL}&quot;</span> --token <span style="color:#6a8e2f;">&quot;${token}&quot;</span> \
            --name <span style="color:#6a8e2f;">&quot;${RUNNER_NAME}&quot;</span> --labels <span style="color:#6a8e2f;">&quot;${RUNNER_LABELS}&quot;</span> --unattended --replace
<span style="color:#c0392b;">exec</span> <span style="color:#c0392b;">./run.sh</span></code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Two things to know before you run it:</p>
<ul>
  <li>The runner refuses to start as root unless you set <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">RUNNER_ALLOW_RUNASROOT=1</code>.</li>
  <li>Without <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">--replace</code>, a restarted container can&apos;t reclaim its own name, so dead registrations pile up.</li>
</ul>
<!--kg-card-end: html-->
<p>Then create an app on Magic Containers, point it at the image, set four variables, and pick your regions:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code>{
  <span style="color:#2a5599;">&quot;name&quot;</span>: <span style="color:#6a8e2f;">&quot;ci-runner-01&quot;</span>,
  <span style="color:#2a5599;">&quot;imageName&quot;</span>: <span style="color:#6a8e2f;">&quot;my-runner-image&quot;</span>,
  <span style="color:#2a5599;">&quot;environmentVariables&quot;</span>: [
    { <span style="color:#2a5599;">&quot;name&quot;</span>: <span style="color:#6a8e2f;">&quot;GH_RUNNER_URL&quot;</span>, <span style="color:#2a5599;">&quot;value&quot;</span>: <span style="color:#6a8e2f;">&quot;https://github.com/&lt;org&gt;/&lt;repo&gt;&quot;</span> },
    { <span style="color:#2a5599;">&quot;name&quot;</span>: <span style="color:#6a8e2f;">&quot;GH_PAT&quot;</span>,        <span style="color:#2a5599;">&quot;value&quot;</span>: <span style="color:#6a8e2f;">&quot;&lt;token with Administration: read+write&gt;&quot;</span> },
    { <span style="color:#2a5599;">&quot;name&quot;</span>: <span style="color:#6a8e2f;">&quot;RUNNER_LABELS&quot;</span>, <span style="color:#2a5599;">&quot;value&quot;</span>: <span style="color:#6a8e2f;">&quot;self-hosted,ci,dotnet&quot;</span> },
    { <span style="color:#2a5599;">&quot;name&quot;</span>: <span style="color:#6a8e2f;">&quot;RUNNER_NAME&quot;</span>,   <span style="color:#2a5599;">&quot;value&quot;</span>: <span style="color:#6a8e2f;">&quot;ci-runner-01&quot;</span> }
  ]
}</code></pre>
<!--kg-card-end: html-->
<p>The token never runs a job. Its only job is to mint the registration token at boot, which is why a restarted container signs itself back in with nobody watching. If this is going to live for a while, a GitHub App is a better owner of that permission than someone&apos;s personal token.</p><p>Finally, ask for your labels in the workflow:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#2a5599;">jobs</span>:
  <span style="color:#2a5599;">tests</span>:
    <span style="color:#2a5599;">runs-on</span>:
      <span style="color:#2a5599;">labels</span>: [ <span style="color:#6a8e2f;">&apos;ci&apos;</span>, <span style="color:#6a8e2f;">&apos;dotnet&apos;</span> ]</code></pre>
<!--kg-card-end: html-->
<p>That&apos;s the whole setup. There&apos;s no agent to install and nothing else to run alongside it, and your code and secrets stay on infrastructure you control.</p><h2 id="test-databases-as-sidecars">Test databases as sidecars</h2><p>Our integration tests used to start their own dependencies with Testcontainers:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">var</span> redis = <span style="color:#c0392b;">new</span> RedisBuilder().WithImage(<span style="color:#6a8e2f;">&quot;redis:alpine&quot;</span>).Build();
<span style="color:#c0392b;">await</span> redis.StartAsync();</code></pre>
<!--kg-card-end: html-->
<p>That needs a Docker daemon too, so it stopped working in CI. The test factory now checks for an endpoint first, and only starts a container if there isn&apos;t one:</p>
<!--kg-card-begin: html-->
<pre style="background:#f6f7f9; border:1px solid rgba(24, 61, 109, 0.18); border-radius:8px; padding:16px 18px; margin:0 0 1.5em; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:14px; line-height:1.6; color:#183d6d;"><code><span style="color:#c0392b;">var</span> ciEndpoint = Environment.GetEnvironmentVariable(<span style="color:#6a8e2f;">&quot;CI_REDIS_ENDPOINT&quot;</span>);
<span style="color:#c0392b;">if</span> (!string.IsNullOrEmpty(ciEndpoint))
    <span style="color:#c0392b;">return</span> <span style="color:#c0392b;">new</span> RedisTestInstance(ciEndpoint);

<span style="color:#8a94a6;">// nothing set, so we&apos;re on a laptop: start a container as before</span></code></pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>Locally nothing changed. In CI, Redis and etcd run as extra containers in the same app as the runner, and the runner gets <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 6px; border-radius:4px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.9em;">CI_REDIS_ENDPOINT=localhost:6379</code>.</p>
<!--kg-card-end: html-->
<p>This is just an edit to the test suite. Everywhere a test built a container, it now reads config instead. And one shared instance behaves differently from a fresh container per test, so you need a rule for keeping tests from stepping on each other.</p><h3 id="why-localhost-works">Why localhost works</h3><p>Containers in one app share a single network namespace, the same way a Kubernetes pod does. They have separate filesystems and processes, but one network stack, so one loopback interface and one set of ports. When the sidecar binds 6379, your test finds it at 127.0.0.1:6379. There&apos;s no service discovery, no DNS name, and no network hop. Two things follow:</p><ul><li>Because ports are shared inside the app, <strong>two sidecars can&apos;t both bind 6379</strong>, so move one of them.</li><li><strong>And ports aren&apos;t shared outside it</strong>, so nothing you bind is reachable elsewhere unless you publish it.</li></ul><h2 id="what-i-got-wrong">What I got wrong</h2><h3 id="runners-kept-dying-on-restart">Runners kept dying on restart</h3><p>At first I put a registration token straight into the container. Those expire, so the first time a container restarted, the runner went offline and stayed offline. When we tried to roll runners out across the organization, they kept dropping. The start script above is the fix: a long-lived credential that only mints a fresh registration token at boot.</p><h3 id="ephemeral-storage-is-free-up-to-a-hard-limit">Ephemeral storage is free, up to a hard limit</h3><p>Every container comes with 10 GB of ephemeral disk at no extra cost. If a job fits in that and nothing has to survive after it finishes, you don&#x2019;t need a volume at all. But if a container goes over 10 GB, it&#x2019;s killed and recreated, with no log telling you why. That&#x2019;s by design, and Kubernetes treats ephemeral storage the same way, but it catches people out.</p><p>Persistent volumes are the one part of the bill that works differently: they&#x2019;re billed by provisioned size, however much of it you use. So attach one only for what has to outlive the job, like a dependency cache, and size it to what you need.</p><h3 id="pre-baked-images-go-stale">Pre-baked images go stale</h3><p>Our runner images ship with their toolchains already installed, which is part of why they&apos;re fast. The trade-off is that they don&apos;t refresh themselves the way GitHub&apos;s runners do, so they need rebuilding to stay current.</p><h2 id="the-fleet-sits-idle-93-of-the-time">The fleet sits idle 93% of the time</h2><p>Then I looked at what those machines were actually doing. They&apos;re busy 7% of the time and idle for the other 93%.</p><p>That&apos;s quite typical because CI arrives in bursts. You&#x2019;ll have nothing overnight, then forty jobs the moment someone merges. Now, on a regular VM fleet, if you size the fleet for the burst, you&#x2019;ll pay through the quiet hours, but if you size it for the average, people will queue.</p><p>On Magic Containers, the dilemma mostly goes away. You pay for the CPU and memory a container actually uses, not for what it has allocated, so a runner sitting idle waiting for work costs close to nothing. You start paying when a job actually runs on it. That&#x2019;s why sizing the fleet for the burst is the cheap option here.</p><p>A machine per job would cut the bill further, but I couldn&#x2019;t do it at first. Containers took tens of seconds to become ready, and a runner that arrives half a minute late is worse than one that was already there. Because an idle runner costs so little, keeping the fleet up was an easy compromise.</p><h2 id="a-runner-per-job">A runner per job</h2><p>Start-up is down to seconds now and that came out of performance work on Magic Containers over the past months rather than anything CI-specific.</p><p>So a runner no longer has to exist before the job does. What I&apos;m building now watches the job queue, starts one machine per job with the right image for that job&apos;s language, and deletes it when the job finishes. The standing fleet goes away, and the only thing left running is the watcher itself, one small container.</p>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;"></th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Per month</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Per year</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">GitHub-hosted runners</td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$407</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">$4,884</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Our fleet today</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$60</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$720</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Per-job runners + watcher</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$9</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">$108</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<p>About $4 of that $9 is the CI itself and the rest is the estimated cost of the watcher. The runners above are live today. The watcher isn&apos;t built yet, so the bottom row is a projection based on our measured CI usage, not an actual bill.</p><p>It should also stop a kind of flaky test. Today, consecutive jobs share the same sidecar databases, and state leaks between runs. A fresh app per job gives each one a clean database without anyone arranging it.</p><h2 id="should-you-do-this">Should you do this?</h2><p>If most of your CI minutes are billed rather than covered by your plan, probably. On a VM fleet, volume decides it: a standing fleet only beats per-minute pricing if you keep it busy enough. On Magic Containers that bar is much lower, because you pay for what jobs use, not for runners waiting for work. Per-job runners will lower it further.</p>]]></content:encoded></item><item><title><![CDATA[UniqCast and bunny.net help operators bring live TV to audiences everywhere]]></title><description><![CDATA[We’ve been working side by side for a while, serving telecom operators and ISPs. UniqCast’s TV platform delivers video through Bunny CDN, and that integration already runs real operator services. Today, we’re making the partnership official, so operators get a single cloud-based stack.]]></description><link>https://bunny.net/blog/uniqcast-and-bunny-net-help-operators-bring-live-tv-to-audiences-everywhere/</link><guid isPermaLink="false">6ae325048b5fed851dd5424b</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Graeme Inglis]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:57:53 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/IMG_3538-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/10/IMG_3538-1.png" alt="UniqCast and bunny.net help operators bring live TV to audiences everywhere"><p>There&#x2019;s a lot that goes into launching a TV service.</p><p>First, there&#x2019;s the platform: apps for every screen, live channels, video on demand, catch-up, and the back office that keeps it all running. Then there&#x2019;s the delivery layer, getting streams to viewers reliably across markets and networks. Building both from scratch means taking on the platform and delivery infrastructure yourself.</p><p>That&#x2019;s where <a href="https://www.uniqcast.com/" rel="noreferrer">UniqCast</a> and bunny.net come in. We&#x2019;ve been working side by side for a while, serving telecom operators and ISPs. UniqCast&#x2019;s TV platform delivers video through Bunny CDN, and that integration already runs real operator services. Today, we&#x2019;re making the partnership official, so operators get a single cloud-based stack from teams that know how to work together.</p><h2 id="how-the-setup-works">How the setup works</h2><p>UniqCast&apos;s IPTV and OTT platform handles the service side, from subscriber management and integrations to apps for set-top boxes, Smart TVs, mobile devices, and browsers. Bunny CDN distributes the video across markets and networks, and that same setup is already running across real operator services.</p><p>Operators can:</p><ul><li><strong>Launch quickly</strong>, without building their own delivery infrastructure.</li><li><strong>Get a TV service built for them</strong>, tailored to their market, brand, and business model.</li><li><strong>Reach audiences outside their network</strong>, across other ISPs and countries.</li><li><strong>Scale and add features</strong> without having to rethink their architecture.</li></ul><h2 id="european-roots-global-projects">European roots, global projects</h2><p>Our roots are European: UniqCast is Croatian-Slovenian, bunny.net is Slovenian, and both companies build with EU data protection in mind. Between us, we serve customers around the world, and UniqCast alone runs 40+ active projects on five continents. Operators work with two experienced teams, keep control of their subscriber relationships, and know exactly who runs the stack behind their service.</p><p><strong>Running a TV service on a legacy platform? </strong><a href="https://bunny.net/contact-sales/"><strong>Talk to our team.</strong></a></p>]]></content:encoded></item><item><title><![CDATA[Manage Bunny Stream from the terminal with the bunny.net CLI]]></title><description><![CDATA[Create libraries, bring in videos from a local file or a URL, and print embed URLs, with commands that behave the same in your shell, a CI pipeline, or your agent’s session.]]></description><link>https://bunny.net/blog/manage-bunny-stream-from-the-terminal-with-the-bunny-net-cli/</link><guid isPermaLink="false">6ae0b0788b5fed851dd541e1</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Amir Keshavarz]]></dc:creator><pubDate>Tue, 27 Oct 2026 14:42:36 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/Stream-Library.png" medium="image"/><content:encoded><![CDATA[
<!--kg-card-begin: html-->
<img src="https://bunny.net/blog/content/images/2026/10/Stream-Library.png" alt="Manage Bunny Stream from the terminal with the bunny.net CLI"><p>
  Today we&apos;re adding <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny stream</code> to the bunny.net CLI so you or your AI agent can manage Bunny Stream from the same terminal you use for Bunny Database, Storage, DNS, and Edge Scripts. Create a library, upload or fetch videos, style the player, lock down playback, add captions, and generate titles and chapters from a transcript, all with one tool.
</p>
<!--kg-card-end: html-->
<p>Each command does one job and runs the same way in your shell, a CI pipeline, or an AI agent&#x2019;s session. String a few together and a video workflow becomes a script you can run again whenever you need it.</p><h2 id="upload-a-video-and-get-an-embed-link">Upload a video and get an embed link</h2><p>Three commands take a local file to a player URL:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream libraries <span style="color:#ECEC93;">create</span> my-library <span style="color:#ECEC93;">--link</span>
bunny stream videos <span style="color:#ECEC93;">upload</span> ./launch-demo.mp4 <span style="color:#ECEC93;">--title</span> <span style="color:#BDE052;">&quot;Launch demo&quot;</span>
bunny stream videos <span style="color:#ECEC93;">embed</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--link</code> connects the current directory to the new library through <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.bunny/stream.json</code>, so every later command in that project knows where to look. Leave the flag off and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries create</code> asks, along with two more offers: saving the library&apos;s credentials to <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.env</code> so our <a href="https://github.com/BunnyWay/examples/tree/main/stream">Stream examples</a> work out of the box, and adding your first videos straight away. Then it prints what to do next.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  The upload reports a status of <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">Uploaded</code> or <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">Processing</code>, because bunny.net keeps encoding after the command returns. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos embed</code> with no GUID opens a picker of the library&apos;s videos and prints the player embed URL for the one you choose.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  In a directory with no link, pass the library ID with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--lib</code>, or run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny stream link</code> to connect one. If you run a command interactively with neither, the CLI opens a library picker and then offers to link the directory to the library you choose.
</p>
<!--kg-card-end: html-->
<h2 id="libraries-regions-and-api-keys">Libraries, regions and API keys</h2>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries create</code> stores a new library in DE, and you can add replication regions when you create it or later. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny stream regions</code> lists the codes:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream <span style="color:#ECEC93;">regions</span>

Code   Name           Role          Suggested
 DE     Frankfurt      main          no
 UK     London         replication   no
 SE     Stockholm      replication   no
 NY     New York       replication   yes
 LA     Los Angeles    replication   yes
 SG     Singapore      replication   yes
 SYD    Sydney         replication   no
 BR     Sao Paulo      replication   no
 JH     Johannesburg   replication   no

bunny stream libraries <span style="color:#ECEC93;">create</span> my-library <span style="color:#ECEC93;">--replication-regions</span> NY,SG
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  You can add regions later with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries update --add-replication-regions</code>, but you can&#x2019;t remove one once it&#x2019;s added, so choose with care.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries update</code> sends only the flags you pass and leaves every other setting alone. Run it with no flags and it opens a small editor for the name, enabled resolutions, and transcribing, prefilled with the current values:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream libraries <span style="color:#ECEC93;">update</span> my-library <span style="color:#ECEC93;">--resolutions</span> 720p,1080p
bunny stream libraries <span style="color:#ECEC93;">update</span> my-library <span style="color:#ECEC93;">--keep-original</span> <span style="color:#ECEC93;">--mp4-fallback</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  The Stream API key stays out of sight. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries show</code> never prints it, in any output format, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries credentials</code> masks it until you add <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--show-secret</code>. For an app that needs the key, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries credentials --save-env</code> writes it to <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.env</code> alongside the library ID. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--rotate</code> resets the key after a confirmation, so check what else is using it first.
</p>
<!--kg-card-end: html-->
<h2 id="two-ways-to-add-a-video">Two ways to add a video</h2>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos upload</code> sends a local file. Files over 2 GB switch to resumable TUS uploads automatically: the CLI sends 64 MiB chunks, and a failed chunk retries from the offset the server reports it holds, so a blip halfway through a large file carries on from there. Resume state lives in the running command, so a cancelled upload starts again from zero on the next run.
</p>
<!--kg-card-end: html-->
<p>Each upload creates the video entry first, then sends the bytes. If the bytes fail, the CLI checks what bunny.net received. An entry with no data is deleted so a retry leaves no orphans. An entry that may have received data stays, and the CLI prints its GUID in a warning.</p>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos fetch</code> hands bunny.net a URL and lets our servers do the download, so the file never passes through your machine. The command returns once the fetch is queued, and the video shows up in <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos list</code> after it&apos;s fetched and encoded. Add <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--header</code> for an origin that needs authentication:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">fetch</span> https://example.com/video.mp4 <span style="color:#ECEC93;">--header</span> <span style="color:#BDE052;">&quot;Authorization: Bearer abc&quot;</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  There&apos;s no <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos create</code>, since every video starts as a file or a URL. Both commands take <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--collection</code> to drop the video straight into a collection, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--thumbnail-time</code> to pick the main thumbnail frame during ingest.
</p>
<!--kg-card-end: html-->
<h2 id="style-the-player-and-sign-the-embeds">Style the player and sign the embeds</h2><p>Player settings live on the library, covering colors, fonts, captions, controls, playback speeds, and the heatmap:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream libraries player <span style="color:#ECEC93;">update</span> my-library <span style="color:#ECEC93;">--color</span> <span style="color:#BDE052;">&quot;#FF7755&quot;</span> <span style="color:#ECEC93;">--speeds</span> <span style="color:#D1949E;">0.5</span>,<span style="color:#D1949E;">1.0</span>,<span style="color:#D1949E;">1.15</span>,<span style="color:#D1949E;">2.0</span> <span style="color:#ECEC93;">--heatmap</span>
bunny stream libraries player <span style="color:#ECEC93;">reset</span> my-library
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">player reset</code> returns everything to the dashboard defaults after a confirmation.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">security update</code> handles allowed and blocked referrers, direct access, embed and CDN tokens, and MediaCage Basic DRM:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream libraries security <span style="color:#ECEC93;">update</span> my-library <span style="color:#ECEC93;">--embed-token</span> <span style="color:#ECEC93;">--block-direct-access</span> <span style="color:#ECEC93;">--allow-referrer</span> example.com
</pre>
<br>
<!--kg-card-end: html-->
<p>Settings that are already in place get skipped, and if a change fails partway, the CLI tells you what went through. You can run the same command again to finish the job.</p>
<!--kg-card-begin: html-->
<p>
  With embed tokens on, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos embed</code> signs the URL with the token key from the library&apos;s linked pull zone:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">embed</span> 1a2b3c4d-... <span style="color:#ECEC93;">--expires</span> 1h
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">security show --rotate</code> resets that key after a confirmation, and every signed URL you&apos;ve already handed out stops working.
</p>
<!--kg-card-end: html-->
<h2 id="collections-captions-and-housekeeping">Collections, captions and housekeeping</h2>
<!--kg-card-begin: html-->
<p>
  Collections group a library&apos;s videos. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">collections delete</code> removes every video inside the collection along with it, and the confirmation names how many are about to go, so move anything you want to keep out first:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">update</span> 1a2b3c4d-... <span style="color:#ECEC93;">--collection</span> <span style="color:#BDE052;">&quot;&quot;</span>
bunny stream collections <span style="color:#ECEC93;">delete</span> 8a7b6c5d-...
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos captions add</code> uploads a <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.vtt</code> or <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.srt</code> file you wrote yourself and prints what the API&apos;s validator says, including warnings for an accepted file with non-breaking issues. Leave out the video or the language and it asks for them:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos captions <span style="color:#ECEC93;">add</span> ./captions.vtt 1a2b3c4d-... en <span style="color:#ECEC93;">--label</span> <span style="color:#BDE052;">&quot;English&quot;</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  For videos that have been around a while, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos resolutions</code> lists what&apos;s configured, encoded, and stored, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos cleanup</code> deletes renditions, MP4 fallbacks, or the stored original. Start with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--dry-run</code> to see what would be deleted without actually deleting anything:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">cleanup</span> 1a2b3c4d-... <span style="color:#ECEC93;">--non-configured</span> <span style="color:#ECEC93;">--dry-run</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos stats</code> reports views and watch time, with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--heatmap</code> and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--play-data</code> for the detail.
</p>
<!--kg-card-end: html-->
<h2 id="paid-jobs-warn-you-first">Paid jobs warn you first</h2>
<!--kg-card-begin: html-->
<p>
  Three video commands can cost money, and they warn you before they run: <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos encode</code>, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos transcribe</code>, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos smart</code>.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos encode</code> re-encodes a video with the library&apos;s current settings. This requires the original file, so <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--keep-original</code> must have been enabled when the video was uploaded. Standard encoding is included at no extra cost, so on most libraries this is free. With Premium Encoding, every output it regenerates is billed per minute of output and per output codec. You switch a library to Premium Encoding with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries update --encoding-tier premium</code>.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos transcribe</code> costs $0.10 per language-minute of audio and prints an estimate before it starts. Pass <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--source-language</code> for an exact figure. Without it you get a range, since the auto-detected spoken language may add one more language to the bill:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">transcribe</span> 1a2b3c4d-... <span style="color:#ECEC93;">--target-languages</span> en,de <span style="color:#ECEC93;">--source-language</span> en
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--overwrite</code> replaces a transcription the video already has and overrides the library&apos;s transcribing defaults.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  Library settings can cost money too. If the library already transcribes automatically, uploads trigger a transcription on their own. A re-encode reuses the existing transcription, so you only pay to transcribe again if the transcription languages have changed, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos encode</code> tells you what that would cost.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos smart</code> reads a video&apos;s transcript and generates a title, description, chapters, or moments:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">smart</span> 1a2b3c4d-... <span style="color:#ECEC93;">--title</span> <span style="color:#ECEC93;">--chapters</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos smart</code> never transcribes a video without asking. It shows the estimated cost first, and an unattended run stops with the figure unless you approve it up front with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--transcribe</code>.
</p>
<!--kg-card-end: html-->
<h2 id="built-for-scripts-and-ai-agents">Built for scripts and AI agents</h2>
<!--kg-card-begin: html-->
<p>
  Every command works unattended. With <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--output json</code> or <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--force</code>, or when there&#x2019;s no TTY, the CLI never prompts. A command that can&apos;t determine which library to use exits with a hint to pass one or link the directory, so a CI job fails fast and never hangs on a question nobody is there to answer.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  Deletes, cleanups and unlinks need <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--force</code> to run non-interactively. On destructive commands and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">videos smart</code>, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">--force</code> also turns the pickers off, so the CLI can&apos;t act on a library or video you didn&apos;t name. That&apos;s the guarantee you want when an agent is at the keyboard.
</p>
<!--kg-card-end: html-->
<h2 id="get-started">Get started</h2><p>Install the CLI, log in, and create a library:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
npm <span style="color:#ECEC93;">install</span> -g @bunny.net/cli
bunny <span style="color:#ECEC93;">login</span>
bunny stream libraries <span style="color:#ECEC93;">create</span> my-library
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraries create</code> walks you through linking the directory, saving the credentials to <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">.env</code>, and adding your first videos. To use a library you already have, run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny stream link</code> and pick it from the list. Then upload something and check it arrived:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny stream videos <span style="color:#ECEC93;">upload</span> ./video.mp4
bunny stream videos <span style="color:#ECEC93;">list</span>
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  When we shipped <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code>, we said Stream support was coming next. It&apos;s in the CLI now, alongside the rest of the bunny.net stack:
</p>
<!--kg-card-end: html-->
<ul><li><a href="https://bunny.net/blog/introducing-the-bunny-net-cli/">Manage</a> and <a href="https://bunny.net/blog/query-bunny-database-with-fetch-and-nothing-else/">query</a> Bunny Database, and <a href="https://bunny.net/blog/bunny-database-migrations-from-the-terminal-with-the-bunny-net-cli/">handle database migrations</a></li><li><a href="https://bunny.net/blog/deploy-static-sites-anywhere-with-the-bunny-net-cli/">Deploy static sites</a></li><li><a href="https://bunny.net/blog/build-and-deploy-scripts-at-the-edge-with-the-bunny-net-cli/">Build and deploy edge functions</a></li><li><a href="https://bunny.net/blog/manage-dns-from-the-terminal-with-bunny-net-cli/">Manage Bunny DNS</a></li><li><a href="https://bunny.net/blog/you-can-now-manage-bunny-storage-with-the-bunny-net-cli/">Manage Bunny Storage</a></li><li><a href="https://bunny.net/blog/introducing-bunny-sandbox-a-disposable-room-where-ai-can-build/">Run code and agents in Bunny Sandbox</a></li></ul><p>The CLI is <a href="https://github.com/BunnyWay/cli">open source</a> and built in public. If something breaks or a Stream task you rely on is missing, tell us on <a href="https://github.com/BunnyWay/cli/issues">GitHub</a> or <a href="https://discord.com/invite/bunnynet">Discord</a>.</p>]]></content:encoded></item><item><title><![CDATA[CVE-2026-109618 and CVE-2026-109619: Bunny Shield's response to critical PHP vulnerabilities]]></title><description><![CDATA[Bunny Shield is providing an additional layer of protection while customers prepare to update]]></description><link>https://bunny.net/blog/cve-2026-109618-and-cve-2026-109619/</link><guid isPermaLink="false">6ad893938b5fed851dd541c4</guid><category><![CDATA[Security]]></category><dc:creator><![CDATA[Joe Connolly]]></dc:creator><pubDate>Wed, 21 Oct 2026 10:30:34 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/bunny.net-Bunny-Shield-php-vulnerability.jpg" medium="image"/><content:encoded><![CDATA[<blockquote><strong>Update - 21 October, 2026 14:15 UTC:</strong> PHP has published its security releases and technical advisories. We have updated this post with the fixed versions and added two managed WAF rules for multipart request patterns described in the advisory for CVE-2026-109618. Our earlier upload-progress rule targets one confirmed path for CVE-2026-109619. Matching requests are blocked only when your Shield Zone&apos;s WAF is in blocking mode; log-only mode does not block them.</blockquote><img src="https://bunny.net/blog/content/images/2026/10/bunny.net-Bunny-Shield-php-vulnerability.jpg" alt="CVE-2026-109618 and CVE-2026-109619: Bunny Shield&apos;s response to critical PHP vulnerabilities"><p>The PHP security team has announced an emergency release to address two critical vulnerabilities, each rated <strong>9.2 under CVSS v4.0</strong>. Researchers are tracking the reported issues as <strong>CVE-2026-109618</strong> and <strong>CVE-2026-109619</strong>. PHP plans to publish its security release on <strong>October 21, 2026 at 14:00 UTC</strong> and has urged users to prepare to update promptly. Read <a href="https://www.php.net/archive/2026.php" rel="noopener noreferrer">PHP&apos;s security announcement</a> and its advisories for <a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w" rel="noopener noreferrer">CVE-2026-109618</a> and <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp" rel="noopener noreferrer">CVE-2026-109619</a>.</p><p>Bunny Shield has expanded its managed WAF coverage with two additional multipart rules, alongside the upload-progress rule we activated ahead of the release. These rules target specific request patterns described in PHP&apos;s advisories while customers update their PHP installations. <strong>They block matching requests only when your Shield Zone&apos;s WAF is in blocking mode.</strong></p><h2 id="understanding-the-vulnerabilities">Understanding the vulnerabilities</h2><h3 id="cve-2026-109618rce-via-oom-corruption">CVE-2026-109618 - RCE via OOM corruption</h3><p>PHP&apos;s out-of-memory handling can interrupt a request while internal data is only partly initialized. Cleanup can then use that invalid data. PHP has demonstrated unauthenticated code execution against <code>mod_php</code> before application code runs. Its advisory describes several ways multipart requests can drive memory exhaustion, including requests without a usable declared length and deeply nested field names.</p><h3 id="cve-2026-109619rce-via-stale-global-state">CVE-2026-109619 - RCE via stale global state</h3><p>Request-owned state can remain accessible after its memory is freed. A later request handled by the same worker may encounter that stale state before PHP resets it. PHP confirms a session upload-progress path, as well as other paths involving fatal errors and early initialization. Blocking the default upload-progress field addresses one request pattern; it does not cover every path to this vulnerability.</p><h2 id="fixed-php-versions">Fixed PHP versions</h2>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">PHP branch</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Fixed release</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">8.5</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;"><strong>8.5.12</strong></td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">8.4</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><strong>8.4.27</strong></td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">8.3</td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><strong>8.3.36</strong></td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">8.2</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;"><strong>8.2.35</strong></td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<h2 id="how-bunny-shield-protects-your-site">How Bunny Shield protects your site</h2><p>Three managed WAF rules now address request patterns associated with the confirmed paths:</p>
<!--kg-card-begin: html-->
<table style="border:1px solid rgba(24, 61, 109, 0.18); border-collapse:collapse; width:100%;">
  <thead>
    <tr style="font-weight:700; text-align:left; background:#223c6a; color:white;">
      <th style="padding:12px 14px; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">Managed rule</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); color:white;">What it matches</th>
      <th style="padding:12px 14px; border-bottom:1px solid rgba(24, 61, 109, 0.18); color:white;">Relevant path</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 5px; border-radius:3px; font-family:monospace;">WAF-PHP-UPLOAD-PROGRESS-POC</code></td>
      <td style="padding:12px 14px; border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Multipart requests containing the default <code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 5px; border-radius:3px; font-family:monospace;">PHP_SESSION_UPLOAD_PROGRESS</code> field</td>
      <td style="padding:12px 14px; vertical-align:middle; color:#183d6d;">The confirmed session upload-progress path for CVE-2026-109619</td>
    </tr>
    <tr>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;"><code style="color:#c0392b; background:rgba(24, 61, 109, 0.05); padding:1px 5px; border-radius:3px; font-family:monospace;">WAF-PHP-MULTIPART-NESTING</code></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); border-right:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">Multipart field names nested <strong>20 or more levels</strong></td>
      <td style="padding:12px 14px; border-top:1px solid rgba(24, 61, 109, 0.18); vertical-align:middle; color:#183d6d;">The nested-input memory pressure described for CVE-2026-109618</td>
    </tr>
  </tbody>
</table>
<!--kg-card-end: html-->
<h2 id="what-you-should-do-now">What you should do now</h2><ul><li><strong>Identify every PHP origin and version</strong> serving your websites, including sites behind content management systems and custom applications.</li><li><strong>Prepare to install PHP&apos;s fixed releases</strong> when the official advisory is published. Confirm the effective runtime version after updating; a WAF is an additional layer, not a substitute for the software fix.</li><li><strong>Check whether your application uses session upload progress.</strong> If it does not, consider disabling <code>session.upload_progress.enabled</code> in the effective PHP configuration. PHP <a href="https://www.php.net/manual/en/session.configuration.php">documents this setting</a>; turning it off prevents that feature from recording progress, but does not disable multipart upload parsing or establish a fix for either CVE.</li><li><strong>Keep Bunny Shield enabled and review security events</strong> for blocked requests. If your application relies on PHP session upload progress, test that workflow and contact support if it is affected.</li></ul><h2 id="protection-while-you-update">Protection while you update</h2><p>Security releases can take time to reach every server, especially across large fleets and managed hosting environments. Bunny Shield is already blocking the public request pattern before it reaches an origin while teams complete their PHP update rollout. We will keep monitoring the official advisory and new exploit research, then refine our protections as verified details become available.</p><p>To get started with Bunny Shield, <a href="https://dash.bunny.net/auth/login">log in</a> to your bunny.net account or <a href="https://dash.bunny.net/auth/register">sign up</a>. Keep PHP updated even when your site is protected at the edge.When your Shield Zone&apos;s WAF is in <strong>blocking mode</strong>, Bunny Shield blocks matching requests before they reach your origin. In <strong>log-only mode</strong>, these rules do <strong>not</strong> block requests. We respect the mode configured for your zone.</p><p>These rules reduce exposure to the request patterns they match; they are not complete mitigations for either CVE. Other routes to memory exhaustion or stale state are possible, and a customized upload-progress field name will not match the default-field rule. Applications using PHP session upload progress or unusually deep form fields may have legitimate requests matched by these rules. Review affected workflows and your Shield security events.</p><h2 id="what-you-should-do-now-1">What you should do now</h2><ul><li><strong>Patch PHP immediately</strong> to the fixed release for your branch, or install your distribution&apos;s verified backport. Check every PHP origin and restart workers as required by your deployment.</li><li><strong>Check your Bunny Shield WAF mode.</strong> Use blocking mode if you want these managed rules to stop matching requests. Log-only mode will not block them.</li><li><strong>Review upload workflows and security events</strong>, particularly if your application uses session upload progress or deeply nested fields.</li><li><strong>Follow PHP&apos;s temporary guidance if you cannot update at once.</strong> Its advisory covers administrative memory and request-size limits, and disabling <code>session.upload_progress.enabled</code> with a worker restart for the confirmed session path. These measures reduce exposure to particular paths; PHP says updating is the only complete solution.</li></ul><h2 id="protection-while-you-update-1">Protection while you update</h2><p>Bunny Shield can block the two identified request patterns at the edge for customers using WAF blocking mode. We&apos;ll continue reviewing PHP&apos;s advisories and emerging attack techniques and refine our managed rules as needed. <strong>Install the PHP security release even if Bunny Shield is blocking traffic</strong>: the vulnerabilities have paths outside these WAF matches.</p><p>To get started with Bunny Shield, <a href="https://dash.bunny.net/auth/login">log in</a> to your <a href="http://bunny.net">bunny.net</a> account or <a href="https://dash.bunny.net/auth/register">sign up</a>.</p>]]></content:encoded></item><item><title><![CDATA[Introducing the Bunny Stream SDK for React Native and Expo]]></title><description><![CDATA[Built on our iOS and Android SDKs, the new Bunny Stream SDK for React Native and Expo brings native playback, resumable uploads, camera capture, and live streaming together behind one TypeScript API]]></description><link>https://bunny.net/blog/introducing-the-bunny-stream-sdk-for-react-native-and-expo/</link><guid isPermaLink="false">6ad237ba8b5fed851dd54183</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Nathan Zerafa]]></dc:creator><pubDate>Fri, 16 Oct 2026 14:55:03 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/bunny-React-Native-mobile-SDK.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/10/bunny-React-Native-mobile-SDK.png" alt="Introducing the Bunny Stream SDK for React Native and Expo"><p>Building a mobile app with React Native helps you move quickly. Adding video should feel just as straightforward. But between playback, uploads, device cameras, even a simple idea can turn into a long list of integrations.</p><p>When we introduced the <a href="https://bunny.net/blog/introducing-bunny-stream-mobile-sdk-bringing-bunny-stream-to-your-native-ios-and-android-applications/" rel="noreferrer">Bunny Stream Mobile iOS and Android SDKs</a>, we made it easier to bring video to native iOS and Android applications. Today, we&apos;re bringing that experience to more developers with the official <a href="https://github.com/BunnyWay/bunny-stream-react-native"><strong>Bunny Stream React Native SDK</strong></a>!</p><p>Built on our iOS and Android SDKs, it brings native playback, resumable uploads, camera capture, and live streaming together behind one TypeScript API. You build your app with familiar React components. Bunny Stream handles video encoding, storage, and delivery through our global CDN. We&#x2019;ve also bundled in an <a href="https://github.com/BunnyWay/bunny-stream-react-native/blob/main/docs/guides/expo.md">Expo</a> config plugin for faster integration with Expo React Native apps.</p><h2 id="one-integration-for-ios-and-android">One integration for iOS and Android</h2><p>The Bunny Stream React Native SDK connects your shared application code to the native Bunny players and media tools on each device, so you don&#x2019;t need to build separate integrations for every platform.</p><h3 id="resumable-uploads-for-unreliable-mobile-connections">Resumable uploads for unreliable mobile connections</h3><p>Mobile connections don&apos;t always cooperate. With TUS resumable uploads, an interrupted transfer can pick up where it left off instead of sending the whole video again. Progress events and pause, resume, and cancel controls make it easy to build an upload experience that keeps people informed.</p><p>Select TUS when starting an upload to enable resumable transfers. See the upload notes for recovery and platform-specific background behavior.</p><h3 id="familiar-components-native-playback">Familiar components, native playback</h3>
<!--kg-card-begin: html-->
<p>
  Add on-demand or live video with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">BunnyStreamPlayer</code>. Playback runs through the native media engines on iOS and Android, while typed props, events, and React hooks help you connect the player to the rest of your app.
</p>
<!--kg-card-end: html-->
<p>Player settings from your Bunny Stream dashboard carry through to the native experience, helping you keep your videos consistent with your brand. Captions, audio track selection, and adaptive playback give your audience the controls they expect.</p><h3 id="from-camera-to-content">From camera to content</h3>
<!--kg-card-begin: html-->
<p>
  Let your users create as well as watch. Capture video directly from the device camera for your video library, or use <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">BunnyStreamBroadcaster</code> to go live from your app. Camera switching and microphone controls put the essentials within reach.
</p>
<!--kg-card-end: html-->
<h3 id="more-ways-to-watch">More ways to watch</h3><p>Give viewers more room to enjoy their content with fullscreen playback, picture-in-picture, AirPlay on iOS, and Chromecast on Android through the native player controls. For protected content, the SDK brings support for Apple FairPlay and Google Widevine. VAST/IMA ad support also connects your app to Bunny Stream&apos;s video monetization features.</p><p>For Android TV, an optional native TV player integration brings playback to the big screen with an additional SDK dependency.</p><h2 id="broadcast-live-replay-later">Broadcast live, replay later</h2>
<!--kg-card-begin: html-->
<p>
  Live streaming support is built right into the SDK. Use <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">BunnyStreamBroadcaster</code> to broadcast straight from your users&#x2019; phones via RTMP, with camera switching and microphone controls, then show the stream to viewers with the same <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">BunnyStreamPlayer</code> component you use for on-demand video.
</p>
<!--kg-card-end: html-->
<p>Features like DVR let viewers rewind a live event, while recordings keep it available for replay afterward.</p><p>Our Live streaming feature is currently in <strong>closed preview</strong> and being tested by fellow bunny.net users. If you&#x2019;d like to try it, you can request access through the banner in the dashboard (in any of your video libraries).</p><h2 id="using-expo-youre-invited-too">Using Expo? You&apos;re invited too.</h2><p>Using <a href="https://docs.expo.dev/develop/development-builds/introduction/" rel="noreferrer">Expo</a> requires <strong>Expo SDK 52+</strong>. The included Expo config plugin applies the native project configuration needed by the library during pre-build. Add it to your app configuration and create a development build locally or with EAS Build. Expo Go is not supported because the SDK uses native modules.</p><p>The SDK targets iOS and Android and uses React Native&apos;s New Architecture. Android requires <strong>API 26+</strong>; the setup guide covers the remaining native build requirements.</p><p>Install the <a href="https://www.npmjs.com/package/@bunny.net/stream-react-native" rel="noreferrer">package</a>:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
<span style="color:#ECEC93;">npm</span> <span style="color:#ECEC93;">install</span> @bunny.net/stream-react-native
</pre>
<br>
<!--kg-card-end: html-->
<p>For Expo projects, add the plugin to your existing app configuration:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
{
  <span style="color:#D1949E;">&quot;expo&quot;</span>: {
    <span style="color:#D1949E;">&quot;plugins&quot;</span>: [<span style="color:#BDE052;">&quot;@bunny.net/stream-react-native&quot;</span>]
  }
}
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  The repository&apos;s setup guide covers native setup, initialization, and camera and microphone permissions. The plugin supplies default iOS permission messages; customize them through the <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">cameraPermission</code> and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">microphonePermission</code> plugin options. Example apps for React Native and Expo give you a starting point to explore.
</p>
<!--kg-card-end: html-->
<h2 id="let%E2%80%99s-get-to-the-code">Let&#x2019;s get to the code</h2><p>Once you&apos;ve completed setup and initialized the SDK with your library configuration, adding a video looks like this:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
<span style="color:#569CD6;">import</span> { BunnyStreamPlayer } <span style="color:#569CD6;">from</span> <span style="color:#BDE052;">&apos;@bunny.net/stream-react-native&apos;</span>;

<span style="color:#569CD6;">export</span> <span style="color:#569CD6;">function</span> VideoScreen() {
  <span style="color:#569CD6;">return</span> (
    &lt;BunnyStreamPlayer source={{ type: <span style="color:#BDE052;">&apos;vod&apos;</span>, videoId: <span style="color:#BDE052;">&apos;YOUR_VIDEO_ID&apos;</span> }} style={{ flex: <span style="color:#D1949E;">1</span> }} /&gt;
  );
}
</pre>
<br>
<!--kg-card-end: html-->
<p>Showing a live stream uses the same component. Change the source:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
source={{
  type: <span style="color:#BDE052;">&apos;live&apos;</span>,
  streamId: <span style="color:#BDE052;">&apos;YOUR_STREAM_ID&apos;</span>,
}}
</pre>
<br>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">libraryId</code> falls back to the library passed to <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">initialize()</code> for both VOD and live sources. Provide it explicitly on a source to override the initialized library.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  The SDK also gives you typed APIs for managing videos, collections, live streams, captions, reencoding, and AI transcription, so your integration can grow beyond the player as your app grows. Alongside these APIs, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">BunnyImage</code> helps display thumbnails and other Bunny-hosted images with support for CDN hotlink protection. See the platform notes for links to operation-specific limitations.
</p>
<!--kg-card-end: html-->
<h2 id="what-will-you-build">What will you build?</h2><ul><li><strong>Streaming and subscription apps:</strong> Bring your video catalog into one mobile experience, with protected playback and big-screen viewing options. Great for microdramas.</li><li><strong>Social and creator platforms:</strong> Let your community capture, upload, and broadcast from their phones, then keep recorded events available for anyone who missed them.</li><li><strong>Education and e-learning:</strong> Combine on-demand lessons with scheduled live classes. DVR helps learners revisit a tricky explanation, while recordings let them catch up later.</li></ul><h2 id="ready-to-hop-in">Ready to hop in?</h2><p>Adding video shouldn&#x2019;t take away from building the experience your audience comes for. With Bunny Stream for React Native and Expo, native video tools are now part of your React workflow.</p><p>Explore the <a href="https://github.com/BunnyWay/bunny-stream-react-native">official Bunny Stream React Native mobile SDK on GitHub</a>, try the example apps, and bring your next video idea to life.</p><h2 id="built-with-expertise-from-lighthouse-growth">Built with expertise from Lighthouse Growth</h2><p>The Bunny Stream React Native SDK was developed with support from <a href="https://www.lighthouse-growth.com/"><strong>Lighthouse Growth</strong></a>, a software development company with deep expertise in OTT, video streaming, and media technologies.</p><p>Their team brings hands-on experience building video platforms, mobile applications, and SDKs across iOS, Android, and React Native, and helped us make native-grade video capabilities more accessible to the React Native and Expo community. If you&apos;re building in this space, feel free to get in touch with them on <a href="https://www.linkedin.com/in/michal-bulakowski-63b468136/" rel="noreferrer">LinkedIn</a>.</p>]]></content:encoded></item><item><title><![CDATA[Deploy static sites anywhere with the bunny.net CLI]]></title><description><![CDATA[A new set of commands wires up Storage, CDN, and DNS, letting you deploy the folder your framework builds to our global network with a single command.]]></description><link>https://bunny.net/blog/deploy-static-sites-anywhere-with-the-bunny-net-cli/</link><guid isPermaLink="false">6ac7666b8b5fed851dd54109</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Jamie Barton]]></dc:creator><pubDate>Thu, 08 Oct 2026 10:11:35 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/10/Deploy-static-sites-anywhere-with-the-bunny.net-CLI.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/10/Deploy-static-sites-anywhere-with-the-bunny.net-CLI.jpg" alt="Deploy static sites anywhere with the bunny.net CLI"><p>If you&apos;ve hosted a static site on bunny.net, you&apos;ve probably built your own deploy pipeline to do it. That means creating a storage zone, putting a pull zone in front of it, pointing your domain at it, and writing something to upload each build and purge the cache. There&apos;s even a community GitHub Action that handles the upload part.</p>
<!--kg-card-begin: html-->
<p>
  Today we&apos;re introducing <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code>, a set of commands in the bunny.net CLI that takes care of all of that for you. Run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites deploy</code> in your project, and it puts your build live, creating the storage zone and pull zone on the first deploy. It also detects common frameworks and offers to run the build for you. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites domains add</code> connects your own domain, setting up the DNS record for you if it&apos;s on Bunny DNS. And if a release goes wrong, rolling back is one command.
</p>
<!--kg-card-end: html-->
<h2 id="deploy-with-one-command-and-connect-to-github">Deploy with one command and connect to GitHub</h2>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites deploy</code> takes the folder your framework builds and ships it on the bunny.net global network:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny sites <span style="color:#ECEC93;">deploy</span>
</pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  That one command uploads your build and puts it live. There is no separate publish step and no flag to remember: if the deploy succeeded, your site is serving it. A brand-new site gets a working HTTPS address on <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">b-cdn.net</code> immediately, so there are no DNS records or certificates to sort out before you can look at it.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  If you&#x2019;d prefer not to run the command manually for each deploy, you can connect GitHub with a new GitHub Action. <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites ci init</code> scaffolds the workflow using the detected framework conventions, including the output folder and build command. Review the generated workflow and adjust it to fit your setup.
</p>
<!--kg-card-end: html-->
<p>With this workflow, pushes to the main branch go live, and you can trigger a redeploy manually whenever you need one.</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
<span style="color:#ECEC93;">name:</span> Deploy site
<span style="color:#ECEC93;">on:</span>
  <span style="color:#ECEC93;">push:</span>
    <span style="color:#ECEC93;">branches:</span> [main]
  <span style="color:#ECEC93;">workflow_dispatch:</span>

<span style="color:#ECEC93;">concurrency:</span>
  <span style="color:#ECEC93;">group:</span> bunny-sites
  <span style="color:#ECEC93;">cancel-in-progress:</span> <span style="color:#D1949E;">false</span>

<span style="color:#ECEC93;">jobs:</span>
  <span style="color:#ECEC93;">deploy:</span>
    <span style="color:#ECEC93;">runs-on:</span> ubuntu-latest
    <span style="color:#ECEC93;">permissions:</span>
      <span style="color:#ECEC93;">contents:</span> <span style="color:#D1949E;">read</span>
      <span style="color:#ECEC93;">deployments:</span> <span style="color:#D1949E;">write</span> <span style="color:#8A8A8A;"># records the deploy in the repo&apos;s Environments</span>
    <span style="color:#ECEC93;">steps:</span>
      - <span style="color:#ECEC93;">uses:</span> actions/checkout@v4
      - <span style="color:#ECEC93;">uses:</span> oven-sh/setup-bun@v2
      - <span style="color:#ECEC93;">run:</span> bun install --frozen-lockfile
      - <span style="color:#ECEC93;">run:</span> bun run build
      - <span style="color:#ECEC93;">uses:</span> BunnyWay/actions/deploy-site@deploy-site_0.1.1
        <span style="color:#ECEC93;">with:</span>
          <span style="color:#ECEC93;">site:</span> my-site
          <span style="color:#ECEC93;">directory:</span> dist
          <span style="color:#ECEC93;">api_key:</span> ${{ secrets.BUNNYNET_API_KEY }}
</pre>
<!--kg-card-end: html-->
<h2 id="atomic-deploys-and-instant-rollback">Atomic deploys and instant rollback</h2><p>Deploys are immutable. Each one is identified by your Git commit or a hash of its contents, so deploying the same output twice does nothing, and publishing never overwrites files in place. Publishing is a pointer flip and a cache purge, which means the site switches over atomically, with no window where visitors see half of one deploy and half of another.</p><p>It also means rolling back is instant. Every deploy you&apos;ve shipped is still there, so undoing a bad release is one command:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny sites deployments <span style="color:#ECEC93;">list</span>
bunny sites deployments <span style="color:#ECEC93;">publish</span> <span style="color:#ECEC93;">--previous</span>
</pre>
<!--kg-card-end: html-->
<p>No rebuild, no re-upload. The previous deploy is live again in seconds.</p><h2 id="bring-your-own-framework">Bring your own framework</h2><p>Developer tooling changes. Frameworks come and go, and we don&apos;t believe you should have to rebuild your project around a platform to deploy it.</p>
<!--kg-card-begin: html-->
<p>
  If your framework generates static files, it works with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code>. Astro, Hugo, Jekyll, Gatsby, Eleventy, Docusaurus, Gridsome, or any other static site generator: we deploy the output. The CLI also detects common frameworks and offers to run the build for you.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  Single-page apps work too. When the CLI recognizes a client-routed framework such as Vite, Angular, or React Router, or spots a build that looks like one, it configures the site to serve <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">index.html</code> for unknown paths, so a deep link survives a refresh. A <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">404.html</code> in your build output becomes the not-found page for everything else.
</p>
<!--kg-card-end: html-->
<h2 id="how-it-works">How it works</h2>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code> is glue around Storage, CDN, and DNS. There&apos;s no new hosting platform underneath, just the primitives developers have been stitching together themselves, wired up so you don&apos;t have to.
</p>
<!--kg-card-end: html-->
<p>Creating a site provisions two things:</p><ul><li>a storage zone to hold your deploys,</li><li>and a pull zone in front of it, with a handful of edge rules that decide which deploy answers each request.</li></ul><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/10/bunny-sites---how-it-works.png" class="kg-image" alt="Deploy static sites anywhere with the bunny.net CLI" loading="lazy" width="2000" height="1908" srcset="https://bunny.net/blog/content/images/size/w600/2026/10/bunny-sites---how-it-works.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/10/bunny-sites---how-it-works.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/10/bunny-sites---how-it-works.png 1600w, https://bunny.net/blog/content/images/2026/10/bunny-sites---how-it-works.png 2000w" sizes="(min-width: 720px) 720px"></figure><p>Every deploy is uploaded to its own folder in the storage zone, named after your Git commit or a hash of its contents. Nothing in that folder is ever overwritten. One edge rule on the pull zone rewrites the incoming path into the live deploy&apos;s folder, so your site is always served from the root exactly as your framework built it. The CDN caches and serves the files directly from there, and a second rule blocks anyone from reaching a deploy folder by its internal path.</p><p>Publishing retargets that one rule and purges the cache, which is why going live and rolling back both take effect everywhere at once without a file moving.</p>
<!--kg-card-begin: html-->
<p>
  Attach a custom domain with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites domains add yourdomain.com</code> to give production a proper address. If the domain is on Bunny DNS, the CLI offers to point the record at your site and issues the free SSL certificate; otherwise it prints the exact CNAME to set. Your site&apos;s <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">b-cdn.net</code> address keeps working either way.
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  Because deploys are never deleted automatically, deploy history accumulates over time. When you want to tidy up, <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites deployments prune</code> clears out old deploys, always keeps your most recent ones, and never touches the deploy that&apos;s live or the one before it, so rollback always works.
</p>
<!--kg-card-end: html-->
<p>Framework detection works much the same way you would do it by hand. When you run a deploy in a project the CLI hasn&apos;t seen before, it inspects the project to work out which framework you&apos;re using and where its build output lands, then offers to run the build and deploy the result.</p><h2 id="we-dont-build-your-site-we-deliver-it">We don&apos;t build your site, we deliver it</h2><p>We stick to our platform primitives and give developers the resources to build and deploy in whatever way suits them.</p>
<!--kg-card-begin: html-->
<p>
  You control the build in whatever CI provider and toolchain you already use, whether that&apos;s npm, pnpm, Bun, Cargo, or a Makefile, and <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites deploy</code> puts the files you give it in the right place across our global edge network.
</p>
<!--kg-card-end: html-->
<p>Because it&apos;s built on the same infrastructure developers already trust, nothing is hidden behind an abstraction. You can enable and tune any feature of Bunny CDN, DNS, and Storage, and add products like Stream and Edge Scripting alongside your site as it grows.</p><h2 id="pay-as-you-serve">Pay as you serve</h2>
<!--kg-card-begin: html-->
<p>
  Deploying with<code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code> doesn&apos;t introduce a new pricing model. You pay for the underlying bunny.net primitives:
</p>
<!--kg-card-end: html-->
<ul><li><strong>Storage:</strong> $0.01 per GB per month (standard tier, single region). Deploys are static files, so most sites cost fractions of a cent to store, even with previous deploys kept around for instant rollback.</li><li><strong>CDN:</strong> from $0.01 per GB of bandwidth (Europe &amp; North America; other regions range up to $0.06/GB), with no per-request fees. Traffic between Storage and the CDN is free.</li><li><strong>DNS:</strong> <a href="https://bunny.net/blog/were-making-bunny-dns-free/">free</a>. Custom domains run on Bunny DNS at no cost, with unlimited queries.</li></ul><p>Because everything is pay-as-you-go, your costs track actual traffic. A small site serving a few GB each month typically costs only a few cents. There&apos;s no idle charge for a site nobody visits beyond the $1 monthly account minimum. Delete a site and its zones, and it stops costing you anything.</p><h2 id="get-started">Get started</h2><p>Install the bunny.net CLI and log in:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
<span style="color:#ECEC93;">npm install</span> <span style="color:#ECEC93;">-g</span> @bunny.net/cli
bunny <span style="color:#ECEC93;">login</span>
</pre>
<!--kg-card-end: html-->
<p>Here&apos;s a real blog going onto the edge, using Astro&apos;s blog template. If Jekyll, Hugo, or Eleventy is more your thing, the steps are identical: build, deploy, done.</p><p>Scaffold the blog:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
<span style="color:#ECEC93;">npm create</span> astro@latest my-blog <span style="color:#ECEC93;">--</span> <span style="color:#ECEC93;">--template</span> blog
<span style="color:#ECEC93;">cd</span> my-blog
</pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  That gives you a complete blog with a few example posts, RSS, and a sitemap. Run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">npm run dev</code> to have a look around, write a post if you like, then deploy it:
</p>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny sites <span style="color:#ECEC93;">deploy</span> <span style="color:#ECEC93;">--build</span>
</pre>
<!--kg-card-end: html-->
<p>Your first deploy creates the site and provisions the storage zone and pull zone. The CLI detects Astro, runs the build, uploads the output, and puts the site live. With no custom domain at this point, it offers to attach one before it finishes.</p><p>Every later deploy is the same command. Deploy the same output again and nothing is re-uploaded at all, because the deploy is identified by its contents.</p><p>When you want production on your own domain:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny sites domains <span style="color:#ECEC93;">add</span> yourdomain.com
</pre>
<!--kg-card-end: html-->

<!--kg-card-begin: html-->
<p>
  You can then run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites ci init</code> to wire up GitHub. Every merge to <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">main</code> ships to production, and you can trigger a redeploy by hand whenever you need one.
</p>
<!--kg-card-end: html-->
<h2 id="faster-images-with-bunny-optimizer">Faster images with Bunny Optimizer</h2>
<!--kg-card-begin: html-->
<p>
  Static builds are usually stuck with whatever image sizes the build produced. Because every site sits on a regular pull zone, you can turn on Bunny Optimizer and resize images at the edge instead. Point your framework&apos;s image loader at it, and each <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">srcset</code> width becomes a URL like <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">/images/hero.png?width=640</code>.
</p>
<!--kg-card-end: html-->
<p>Next.js, Astro, Angular, and Nuxt all have a loader hook for this, and our <a href="https://github.com/BunnyWay/examples/tree/main/sites" rel="noopener noreferrer">static site examples</a> include a small helper for 21 frameworks, off by default:</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
bunny sites <span style="color:#ECEC93;">deploy</span> <span style="color:#ECEC93;">--build</span> <span style="color:#ECEC93;">--env</span> VITE_BUNNY_OPTIMIZER=<span style="color:#D1949E;">true</span>
</pre>
<!--kg-card-end: html-->
<p>Optimizer is an optional add-on at $9.50 a month per site.</p>
<!--kg-card-begin: html-->
<h2>What&apos;s next for <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code></h2>
<!--kg-card-end: html-->
<p>For now, deploying static sites is CLI only, but we&apos;re experimenting with bringing it to the dashboard.</p>
<!--kg-card-begin: html-->
<p>
  We&apos;re also actively working on deploying Edge Scripts automatically when you run <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites deploy</code>, so when your site needs a form handler or other server-side code, it&apos;s right there alongside it. And for full server-side rendering, we&apos;re experimenting with support for SSR frameworks on Edge Scripting.
</p>
<!--kg-card-end: html-->
<p>If any of this sounds interesting, let us know on <a href="https://discord.com/invite/bunnynet" rel="noopener noreferrer">Discord</a>.</p><h2 id="putting-the-bunnynet-stack-in-your-terminal">Putting the bunny.net stack in your terminal</h2>
<!--kg-card-begin: html-->
<p>
  <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code> joins a growing set of CLI capabilities that let you and your agent use our platform from the terminal:
</p>
<!--kg-card-end: html-->
<ul><li><a href="https://bunny.net/blog/introducing-the-bunny-net-cli/" rel="noreferrer">Manage</a> and <a href="https://bunny.net/blog/query-bunny-database-with-fetch-and-nothing-else/" rel="noreferrer">query</a> Bunny Database, plus <a href="https://bunny.net/blog/bunny-database-migrations-from-the-terminal-with-the-bunny-net-cli/" rel="noreferrer">handle database migrations</a></li><li><a href="https://bunny.net/blog/build-and-deploy-scripts-at-the-edge-with-the-bunny-net-cli/" rel="noreferrer">Build and deploy edge functions</a></li><li><a href="https://bunny.net/blog/manage-dns-from-the-terminal-with-bunny-net-cli/" rel="noreferrer">Manage Bunny DNS</a></li><li><a href="https://bunny.net/blog/you-can-now-manage-bunny-storage-with-the-bunny-net-cli/" rel="noreferrer">Manage Bunny Storage</a></li><li><a href="https://bunny.net/blog/introducing-bunny-sandbox-a-disposable-room-where-ai-can-build/" rel="noreferrer">Run code and agents in Bunny Sandbox</a></li></ul><p>Support for Bunny Stream and Magic Containers Apps is coming next.</p>
<!--kg-card-begin: html-->
<p>
  The CLI is <a href="https://github.com/BunnyWay/cli">open source</a> and built in public. If you&apos;ve deployed something with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">bunny sites</code>, come and tell us about it in <a href="https://discord.com/invite/bunnynet">Discord</a>.
</p>
<!--kg-card-end: html-->
]]></content:encoded></item><item><title><![CDATA[Introducing Bunny CDN Load Balancer: make your origins work together]]></title><description><![CDATA[Available now in Public Preview, the Load Balancer distributes HTTP(S) requests from your Pull Zones across the origins you configure, using your routing preferences alongside origin health and performance.]]></description><link>https://bunny.net/blog/introducing-bunny-cdn-load-balancer-make-your-origins-work-together/</link><guid isPermaLink="false">6abce3608b5fed851dd540e9</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Joe Connolly]]></dc:creator><pubDate>Wed, 30 Sep 2026 10:31:00 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/09/Load-balance.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/09/Load-balance.png" alt="Introducing Bunny CDN Load Balancer: make your origins work together"><p>Say your application runs in two regions, with a third held in reserve. You want the first two to share everyday traffic, and the standby region to step in when they cannot serve it. When an origin fails, those priorities should still determine where the request goes next. </p><p>At bunny.net, we want you to be able to express that plan once and have the CDN carry it through from normal traffic distribution to failover.</p><p>Today, we&#x2019;re introducing <strong>Bunny</strong> <strong>CDN Load Balancer</strong>, available now in <strong>Public Preview</strong>. It distributes HTTP(S) requests from your Pull Zones across the origins you configure, using your routing preferences alongside origin health and performance.</p><h2 id="set-priorities-across-your-origin-pool">Set priorities across your origin pool</h2><p>A Load Balancer is a routing policy in your bunny.net account. Attach it to one Pull Zone or reuse it across several. Requests that need an origin follow that policy; cached responses continue to be served directly from the CDN edge.</p><p>Origin groups let you organize backends by region, provider, capacity, or purpose. In our example, the two primary regions would sit in the first priority tier, with the standby region in a later tier. Traffic can be shared across primary groups while backup capacity waits behind them.</p><p>You can spread traffic evenly, assign weights, or favor nearby or lower-latency groups. The pool can combine standard HTTP(S) servers, Bunny Storage, Edge Scripting, and Magic Containers, so your primary and standby capacity can use different types of backend.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/09/1-2.png" class="kg-image" alt="Introducing Bunny CDN Load Balancer: make your origins work together" loading="lazy" width="1934" height="1216" srcset="https://bunny.net/blog/content/images/size/w600/2026/09/1-2.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/09/1-2.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/09/1-2.png 1600w, https://bunny.net/blog/content/images/2026/09/1-2.png 1934w" sizes="(min-width: 720px) 720px"></figure><h2 id="keep-your-priorities-intact-during-failover">Keep your priorities intact during failover</h2><p>For each request that needs an origin, the edge builds an ordered list of eligible destinations before contacting the first one. It orders the origin groups, then the origins within them, according to your priority tiers and balancing settings.</p><p>When another attempt is safe, the next candidate is already known. In our example, eligible primary capacity stays ahead of the standby region throughout failover.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/09/1-2--1-.png" class="kg-image" alt="Introducing Bunny CDN Load Balancer: make your origins work together" loading="lazy" width="1846" height="1192" srcset="https://bunny.net/blog/content/images/size/w600/2026/09/1-2--1-.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/09/1-2--1-.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/09/1-2--1-.png 1600w, https://bunny.net/blog/content/images/2026/09/1-2--1-.png 1846w" sizes="(min-width: 720px) 720px"></figure><p>Retries also take account of what a request can do. After an origin returns a 5xx response, only requests that are safe to replay are tried again. Requests with a body, or a method that may create or change data, are not blindly repeated after that response. This reduces the risk of turning a failed request into a duplicate order, upload, or payment.</p><p>The failover chain has a time limit, so one request cannot keep working through slow origins indefinitely.</p><h2 id="respond-to-health-at-each-edge">Respond to health at each edge</h2><p>An origin can be reachable from the Frankfurt edge while a network problem prevents the S&#xE3;o Paulo edge from reaching it. Load Balancer combines a network-wide health view with what each edge sees in live traffic.</p><p>Optional health checks monitor origins in a group from across the bunny.net network. A degraded origin is excluded from normal rotation globally until it passes a health check again. Each edge also reacts to failures it encounters locally, even when active checks are disabled, so it can respond to a problem affecting its own requests.</p><p>If no healthy origin remains, Load Balancer can attempt an unhealthy origin as a last resort. Origins and groups you explicitly disable stay excluded.</p><p>For applications that need repeat requests to reach the same origin, optional sticky sessions use an encrypted edge cookie to maintain that choice. Health takes precedence: if the chosen origin becomes unhealthy or unavailable, the visitor is assigned another origin.</p><h2 id="balance-speed-and-capacity">Balance speed and capacity</h2><p>Repeatedly sending traffic to the origin with the lowest measured latency can make it the busiest, eroding the speed advantage that put it first. That&#x2019;s why latency-based origin balancing also considers requests already in flight. As an origin becomes busier, it grows less attractive for new requests, helping the rest of the pool share the load.</p><p>Stale and newly added origins are re-tested automatically. Probing backs off when they remain slow or unavailable, while recovered origins can be considered for traffic again.</p><h2 id="start-balancing-your-origin-traffic">Start balancing your origin traffic</h2><p>Public Preview is available now for <strong>$9.50 per month per Load Balancer</strong>, including <strong>50 million origin-bound requests each month</strong>. Additional requests are billed at <strong>$0.65 per million</strong>.</p><p>Requests served from the CDN cache do not count. Sharing a Load Balancer across multiple Pull Zones uses one monthly fee and one shared request allowance.</p><p>To get started:</p><ul><li>Create a Load Balancer and choose how traffic should be distributed between origin groups.</li><li>Add your origin groups and the origins each should contain, setting priorities to reflect your primary and standby capacity.</li><li>Set your Pull Zone&#x2019;s origin type to <strong>Load Balancer</strong> and select the configuration you created.</li></ul><p>Once traffic is flowing, use the dashboard or API statistics to see how requests are distributed, how each origin is performing, and where failover is happening. The <a href="https://bunny.net/docs/cdn/load-balancer/">Load Balancer documentation</a> covers the routing, health-check, sticky-session, and API options in detail.</p><p><a href="https://dash.bunny.net/auth/login"><strong>Log in</strong></a> or <a href="https://dash.bunny.net/auth/register"><strong>sign up</strong></a> today to join the Public Preview and start balancing your origin traffic with automatic failover.</p>]]></content:encoded></item><item><title><![CDATA[You shouldn't have to rebuild your website: introducing Agent Readability in Bunny Optimizer]]></title><description><![CDATA[Agent Readability in Bunny Optimizer automatically converts eligible HTML pages into Markdown and generates an llms.txt guide to help agents find them.]]></description><link>https://bunny.net/blog/you-shouldnt-have-to-rebuild-your-website-introducing-agent-readability-in-bunny-optimizer/</link><guid isPermaLink="false">6ab5045d8b5fed851dd540c2</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[Joe Connolly]]></dc:creator><pubDate>Thu, 24 Sep 2026 11:22:51 GMT</pubDate><media:content url="https://bunny.net/blog/content/images/2026/09/bunny.net-AI-optimizer.png" medium="image"/><content:encoded><![CDATA[<img src="https://bunny.net/blog/content/images/2026/09/bunny.net-AI-optimizer.png" alt="You shouldn&apos;t have to rebuild your website: introducing Agent Readability in Bunny Optimizer"><p>In the traffic we analyzed for our <a href="https://bunny.net/edge-security-report-2026/">2026 Edge Security Report</a>, AI crawlers were already matching search-engine bots by request volume.</p><p>Alongside those crawlers are assistants visiting websites to answer people&#x2019;s questions. Sometimes, the agentic web is simply someone asking when their tea will ship. The shop has already published its shipping policy, but an assistant receives it wrapped in the HTML for navigation, layout, and everything else that makes the page work in a browser.</p><p>At bunny.net, we think making the internet hop faster includes helping these requests do less unnecessary work. An assistant can read HTML; a text-first version can give it the information with less presentation markup to process. We want that improvement to be something you can turn on for the website you already run, without a second publishing project to maintain.</p>
<!--kg-card-begin: html-->
<p>
  Today, we&#x2019;re launching <strong>Agent Readability in Bunny Optimizer</strong> in <strong>Public Preview</strong>. It automatically converts eligible HTML pages into Markdown and generates an <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">llms.txt</code> guide to help agents find them.
</p>

<!--kg-card-end: html-->
<h2 id="one-page-optimized-for-different-audiences">One page, optimized for different audiences</h2><p>Take the sample About page below, for a tea company called Alder &amp; Vine. Its shipping note survives the conversion intact: orders placed after noon Pacific ship the next business day. So do the headings, numbered list, and staff table. The site navigation and presentation markup are gone.</p><figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/09/33.png" class="kg-image" alt="You shouldn&apos;t have to rebuild your website: introducing Agent Readability in Bunny Optimizer" loading="lazy" width="2000" height="1200" srcset="https://bunny.net/blog/content/images/size/w600/2026/09/33.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/09/33.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/09/33.png 1600w, https://bunny.net/blog/content/images/size/w2400/2026/09/33.png 2400w" sizes="(min-width: 720px) 720px"></figure><p>The company&#x2019;s story comes through, too. You can still read about the trip that inspired it and the farms it works with today. Markdown keeps that context alongside the practical details an assistant might need. A person browsing the site continues to see the original design, while Optimizer creates the text version from the published HTML.</p>
<!--kg-card-begin: html-->
<p>
  An agent can request the page with <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">Accept: text/markdown</code> or use its Markdown URL directly, for example <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">https://bunny.net/docs/index.md</code> on our documentation site.
</p>

<!--kg-card-end: html-->
<h2 id="help-agents-find-the-right-page">Help agents find the right page</h2><p>An assistant arriving at a documentation homepage still needs to work out where to go next. A setup guide, an account FAQ, and a changelog answer very different questions.</p>
<!--kg-card-begin: html-->
<p>
  Optimizer also builds <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">llms.txt</code> automatically from the converted pages. Compatible agents can use the descriptions in this file to find relevant pages, then follow the links to retrieve those pages as Markdown.
</p>

<!--kg-card-end: html-->
<p>The bunny.net documentation excerpt below shows how this helps with a specific task. An assistant helping someone get started can follow the quickstart entry, while one looking for recent changes can head to the changelog.</p>
<!--kg-card-begin: html-->
<pre style="background-color:#202020; padding:1em; border-radius:6px; font-family:monospace; overflow:auto; color:#FFFFFF;">
https://bunny.net/docs/llms.txt
</pre>
<br>
<!--kg-card-end: html-->
<figure class="kg-card kg-image-card"><img src="https://bunny.net/blog/content/images/2026/09/1--1-.png" class="kg-image" alt="You shouldn&apos;t have to rebuild your website: introducing Agent Readability in Bunny Optimizer" loading="lazy" width="2000" height="1310" srcset="https://bunny.net/blog/content/images/size/w600/2026/09/1--1-.png 600w, https://bunny.net/blog/content/images/size/w1000/2026/09/1--1-.png 1000w, https://bunny.net/blog/content/images/size/w1600/2026/09/1--1-.png 1600w, https://bunny.net/blog/content/images/size/w2400/2026/09/1--1-.png 2400w" sizes="(min-width: 720px) 720px"></figure><h2 id="give-it-a-try-on-your-own-site">Give it a try on your own site</h2><p>Agent Readability is included with Optimizer at no additional cost. Optimizer is <strong>$9.50/month</strong>, and <strong>Public Preview for Agent Readability is available now</strong>.</p><p>Open your Pull Zone, go to <strong>Optimizer</strong>, and enable <strong>Agent Readability</strong>. Then turn on <strong>Markdown</strong> and <strong>llms.txt</strong> for your site.</p><p>If you haven&#x2019;t enabled Optimizer yet, the <a href="https://bunny.net/docs/optimizer/quickstart">Optimizer quickstart</a> walks you through initial setup.</p>
<!--kg-card-begin: html-->
<p>
  Start with a page customers regularly ask you about. Open its Markdown version and compare it with the original, just as we&#x2019;ve done above. You can see the text an agent can retrieve, then use <code style="background-color:#1e1e1e; color:#EB5757; padding:2px 6px; border-radius:4px;">llms.txt</code> to explore the other converted pages. Whether the question is about setting up a service or shipping a tin of tea, the answer can start with the content you already maintain.
</p>

<!--kg-card-end: html-->
<p><a href="https://dash.bunny.net/auth/login" rel="noopener noreferrer">Log in</a> or <a href="https://dash.bunny.net/auth/register" rel="noopener noreferrer">sign up</a> today and make the content you&#x2019;ve already published easier for AI agents to find and use.</p>]]></content:encoded></item></channel></rss>