feat: add four storefront identities
This commit is contained in:
19
config/stores.ts
Normal file
19
config/stores.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Single source of truth for the storefronts that get built, deployed and
|
||||
* linked from the showcase headbar switcher.
|
||||
*
|
||||
* code — NEXT_PUBLIC_STORE_CODE; the @store / shop-system id. Must match a
|
||||
* config/store_<code>.ts file.
|
||||
* label — switcher tab label.
|
||||
* worker — the Cloudflare Worker this storefront deploys to.
|
||||
* url — public URL the switcher tab links to (each storefront is its own
|
||||
* deployment). Override per environment as needed.
|
||||
*/
|
||||
export type StoreEntry = { code: string; label: string; worker: string; url: string };
|
||||
|
||||
export const stores: StoreEntry[] = [
|
||||
{ code: 'executive', label: 'Executive', worker: 'rubberquack-executive', url: 'https://executive.rubberquack.dev' },
|
||||
{ code: 'crypto', label: 'Crypto', worker: 'rubberquack-crypto', url: 'https://crypto.rubberquack.dev' },
|
||||
{ code: 'supper', label: 'Supper', worker: 'rubberquack-supper', url: 'https://supper.rubberquack.dev' },
|
||||
{ code: 'collector', label: 'Collector', worker: 'rubberquack-collector', url: 'https://collector.rubberquack.dev' },
|
||||
];
|
||||
Reference in New Issue
Block a user