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

***

[@wocart/storefront](../../README) / [astro](../README) / resolvePreviewStore

# Function: resolvePreviewStore()

> **resolvePreviewStore**(`draft`, `options`): `Promise`\<[`ResolvedStore`](../interfaces/ResolvedStore)\>

The store an editor's draft previews: its theme settings and text edits
over the saved ones, conversion tracking off, in the language the draft
asks for when the store serves it — else the primary. `pathname` is the
route the draft previews (`draft.path`), else the home page.

## Parameters

### draft

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

### options

`Omit`\<[`StoreRequestOptions`](../interfaces/StoreRequestOptions), `"embedded"`\>

## Returns

`Promise`\<[`ResolvedStore`](../interfaces/ResolvedStore)\>
