> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/sdk/site-sdk/rendering-and-performance/rendering-context/introduction.md

## Article Content:

# About the Rendering Context API

The Rendering Context API tells you where, and for whom, the page is rendering. Use it to skip code that needs a browser while the page renders on the server, such as reading `window` or `localStorage`, and to render a component's full content for search engine crawlers, such as reviews that site visitors load later.

With the Rendering Context API, you can:

- Check whether code is running without a browser window, such as while the page renders on the server.
- Check whether the page is rendering for a search engine crawler.

## Use cases

- [Render content that search engines can index](https://dev.wix.com/docs/sdk/site-sdk/rendering-and-performance/rendering-context/sample-flows.md)
- [Skip browser-only work while the page renders on the server](https://dev.wix.com/docs/sdk/site-sdk/rendering-and-performance/rendering-context/sample-flows.md)

## SDK setup

@package_metadata:@wix/site-service-rendering-context

To use the API, install the `@wix/site-service-rendering-context` package:

```bash
npm install @wix/site-service-rendering-context
```

#### Import the package

```ts
import { RenderingContextDefinition } from '@wix/site-service-rendering-context/definition'
```

#### Resolve the service

In a React component, resolve the service with the `useService` hook:

```tsx
import { useService } from '@wix/services-manager-react'
import { RenderingContextDefinition } from '@wix/site-service-rendering-context/definition'

function ProductImage({ imageUrl, previewUrl }: { imageUrl: string; previewUrl: string }) {
    const renderingContextService = useService(RenderingContextDefinition)

    return <img src={renderingContextService.SEO ? imageUrl : previewUrl} alt="Spring jacket" />
}
```