envs

Medusa — storefront and admin

medusa/storefront · version 1

envs add medusa/storefront

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
MEDUSA_BACKEND_URL required config Your own server. Medusa's official starter reads it under a NEXT_PUBLIC_ prefix, which puts it in the browser bundle by design. Self-hosted: no vendor issues this.. where to get it
MEDUSA_PUBLISHABLE_KEY required config Medusa says publishable keys can only be used client-side, such as in a storefront, and scopes each to sales channels. The framework prefix that reaches the browser varies, so only the bare name is offered.. where to get it
MEDUSA_ADMIN_SECRET_KEY optional secret The other key type, for server use. Medusa rolls keys by revoking then recreating rather than changing one in place. The name is convention.. where to get it

The JSON the CLI reads