@alphasquad/storefront-config
v0.2.2
Published
Typed tenant configuration contract for AlphaSquad storefronts
Readme
@alphasquad/storefront-config
Typed tenant configuration contract for AlphaSquad storefronts.
Tenants own their branding and integration endpoints via a single config object, which is then consumed by
@alphasquad/storefront-base for shared behavior (metadata, integrations, etc.).
Install
npm install @alphasquad/storefront-configUsage
Create storefront.config.ts in the tenant app:
import type { TenantStorefrontConfig } from "@alphasquad/storefront-config";
export const storefrontConfig: TenantStorefrontConfig = {
branding: {
tenantName: "my-tenant",
storeName: "My Tenant Store",
logoUrl: "/logo.svg",
appIconUrl: "/favicon.ico",
},
theme: {
palette: "base-template",
},
integrations: {
apiUrl: process.env.NEXT_PUBLIC_API_URL || "",
siteUrl: process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000",
searchUrl: process.env.NEXT_PUBLIC_SEARCH_URL,
},
head: {
title: "My Tenant Store",
description: "A storefront powered by AlphaSquad.",
canonicalPath: "/",
robots: {
index: true,
follow: true,
},
},
};