---
schema_version: "1"
id: 479127455b72839024d8884c45baaadca64c5d11c4da93393849985f3fec9143
title: Storefront Next Automated Setup
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/hybrid-auth-quick-start.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/hybrid-auth-quick-start.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4daf51ea7ff0a16d93171b1999c4a110dec020116a07f1e47a0f7193f09cc882
products:
  - Composable Storefront
  - Salesforce APIs
---
# 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](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/hybrid-auth-manual-setup.md).

## Before You Begin

Complete the [Shared Hybrid Auth Setup](https://developer.salesforce.com/docs/commerce/commerce-api/guides/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](https://developer.salesforce.com/docs/commerce/commerce-api/guides/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](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/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](https://developer.salesforce.com/docs/commerce/sfnext/guides/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](https://developer.salesforce.com/docs/commerce/sfnext/guides/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](https://developer.salesforce.com/docs/commerce/sfnext/guides/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](https://developer.salesforce.com/docs/commerce/sfnext/guides/sfnext-hybrid.md).
- To choose how to split traffic between Storefront Next and SFRA/SiteGenesis, see the [Hybrid Storefront Routing Matrix](https://developer.salesforce.com/docs/commerce/sfnext/guides/sfnext-hybrid-routing-matrix.md).
- Review the environment-specific routing deltas in [Hybrid Auth Environments and Routing](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/hybrid-auth-environment-matrix.md).
- If you hit issues, see [Hybrid Auth Troubleshooting](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/hybrid-auth-troubleshooting.md).

**See also:** For all other architectures, use [Manual Setup](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/hybrid-auth-manual-setup.md). For how Hybrid Auth and its setup paths fit together, see [Hybrid Authentication](https://developer.salesforce.com/docs/commerce/commerce-api/guides/hybrid-authentication.md).
