---
title: "Zero Runtime · Nuxt OG Image · Nuxt SEO"
canonical_url: "https://nuxtseo.com/docs/og-image/v5/guides/zero-runtime"
last_updated: "2026-08-16T10:00:31.933Z"
meta:
  description: "Create OG Images without the server runtime overhead."
  "og:description": "Create OG Images without the server runtime overhead."
  "og:title": "Zero Runtime · Nuxt OG Image · Nuxt SEO"
---

Nuxt SEO on GitHub

You're viewing **OG Image v5** documentation. For the latest, [~~switch to v6~~](https://nuxtseo.com/docs/og-image/getting-started/introduction).

](https://nuxtseo.com/docs/og-image/v5/getting-started/introduction)

](https://nuxtseo.com/docs/og-image/v5/api/define-og-image)

](https://nuxtseo.com/docs/og-image/v5/releases/v5)

Switch to OG Image](https://nuxtseo.com/docs/og-image/getting-started/introduction)Switch to Nuxt SEO](https://nuxtseo.com/docs/nuxt-seo/getting-started/introduction)Switch to Robots](https://nuxtseo.com/docs/robots/getting-started/introduction)Switch to Sitemap](https://nuxtseo.com/docs/sitemap/getting-started/introduction)Switch to Schema.org](https://nuxtseo.com/docs/schema-org/getting-started/introduction)Switch to Link Checker](https://nuxtseo.com/docs/link-checker/getting-started/introduction)Switch to SEO Utils](https://nuxtseo.com/docs/seo-utils/getting-started/introduction)Switch to Site Config](https://nuxtseo.com/docs/site-config/getting-started/introduction)Switch to Skew Protection](https://nuxtseo.com/docs/skew-protection/getting-started/introduction)Switch to AI Ready](https://nuxtseo.com/docs/ai-ready/getting-started/introduction)

**Core Concepts**

# **Zero Runtime**

When using Nuxt as a server-side app with prerendered OG Images, you are forced to have runtime OG images as well which added significant overhead to the server build.

To address this, we introduce the `**zeroRuntime**` config, which ensures all tree-shakable OG image code is removed from the final output.

## Usage

To enable zero runtime, add the following to your config:

nuxt.config.ts

```ts
export default {
  ogImage: {
    zeroRuntime: true
  }
}
```

You will need to make sure you're prerendering all of your pages that use OG images, as the server runtime will not be available.

```ts
export default defineNuxtConfig({
  nitro: {
    prerender: {
      crawlLinks: true,
      routes: [
        '/',
        // ...
      ],
    },
  }
})
```

## Limitations

When using the Zero Runtime mode none of the community templates will be available in your final build, you must copy+paste any community template that you wish to use into your `**components/OgImage**` folder.

## Benchmarks

**Nuxt OG Image - Defaults**

Nitro: 1.6mb

- node\_modules: 25mb

**Nuxt OG Image - Zero Runtime**

Nitro: 306kb (81% reduction)

- node\_modules: 2.0mb (92% reduction)

**Was this page helpful?**

[**Chromium Renderer** Learn how, when and why to use the Chromium renderer.](https://nuxtseo.com/docs/og-image/v5/guides/chromium) [**Compatibility** Learn what environments can use what features.](https://nuxtseo.com/docs/og-image/v5/guides/compatibility)