# Storefront Next Automated Setup

Storefront Next Automated Setup is the quickest way to stand up a hybrid storefront, and is available for **Storefront Next** only. The Storefront Next setup flow in Business Manager provisions the storefront, its Managed Runtime (MRT) environment, and eCDN for you, so you complete only the Hybrid Auth configuration.

:::note
Storefront Next Automated Setup applies to Storefront Next only. For PWA Kit (Composable Storefront), SFRA, or SiteGenesis, use [Manual Setup](/docs/commerce/b2c-commerce/guide/hybrid-auth-manual-setup.md).
:::

## Before You Begin

Complete the [Shared Hybrid Auth Setup](/docs/commerce/b2c-commerce/guide/hybrid-auth-shared-setup.md) (SLAS, session bridging, and Business Manager). These steps are the same for every instance type.

## Set Up by Instance Type

Across all instance types, the Hybrid Auth configuration is the same: enable Hybrid Auth in Business Manager (see [Shared Hybrid Auth Setup, Step 4](/docs/commerce/b2c-commerce/guide/hybrid-auth-shared-setup.md#step-4-configure-business-manager)) and set the hybrid MRT environment variables `PUBLIC__app__hybrid__enabled` and `PUBLIC__app__hybrid__legacyRoutes`. Only the routing setup differs by environment, as summarized in [Hybrid Auth Environments and Routing](/docs/commerce/b2c-commerce/guide/hybrid-auth-environment-matrix.md). Configure each instance type as follows.

### PIG (Primary Instance Group)

1. Enable Hybrid Auth in Business Manager.
2. Enable the hybrid environment variables for MRT.
3. Configure eCDN routing using the Business Manager UI. See [Use Storefront Next in a Hybrid Implementation](/docs/commerce/b2c-commerce/guide/sfnext-hybrid.md).

### ODS (On-Demand Sandbox)

1. Enable Hybrid Auth in Business Manager.
2. Enable the hybrid environment variables for MRT.
3. Configure eCDN routing using the Business Manager UI. See [Set Up Hybrid Storefront with On-Demand Sandbox (ODS) Instances Using eCDN](/docs/commerce/b2c-commerce/guide/sfnext-hybrid-ods.md).

### Localhost (Local Development)

1. Enable Hybrid Auth in Business Manager for the target sandbox/site.
2. Enable the hybrid environment variables for the local runtime.
3. Configure routing with the local hybrid proxy instead of eCDN. See [Set Up Hybrid Proxy Locally in Secondary Instance Group (SIG) Environments](/docs/commerce/b2c-commerce/guide/sfnext-hybrid-proxy-local-dev.md).

## Next Steps

- For the full Storefront Next implementation details, including eCDN routing rules, see [Use Storefront Next in a Hybrid Implementation](/docs/commerce/b2c-commerce/guide/sfnext-hybrid.md).
- To choose how to split traffic between Storefront Next and SFRA/SiteGenesis, see the [Hybrid Storefront Routing Matrix](/docs/commerce/b2c-commerce/guide/sfnext-hybrid-routing-matrix.md).
- Review the environment-specific routing deltas in [Hybrid Auth Environments and Routing](/docs/commerce/b2c-commerce/guide/hybrid-auth-environment-matrix.md).
- If you hit issues, see [Hybrid Auth Troubleshooting](/docs/commerce/b2c-commerce/guide/hybrid-auth-troubleshooting.md).

**See also:** For all other architectures, use [Manual Setup](/docs/commerce/b2c-commerce/guide/hybrid-auth-manual-setup.md). For how Hybrid Auth and its setup paths fit together, see [Hybrid Authentication](/docs/commerce/b2c-commerce/guide/hybrid-authentication.md).
