[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [server](../README) / previewConfig

# Function: previewConfig()

> **previewConfig**(`config`, `draft`): [`StoreConfig`](../../index/interfaces/StoreConfig)

The store config as the preview renders it: the draft's settings and text
edits over the saved ones, and no tracking — a preview is not a visit.

## Parameters

### config

[`StoreConfig`](../../index/interfaces/StoreConfig)

### draft

[`PreviewDraft`](../interfaces/PreviewDraft)

## Returns

[`StoreConfig`](../../index/interfaces/StoreConfig)
