smithery/rzyfront

vendix-frontend-domain

Frontend domain/app configuration patterns: AppConfigService domain detection, environment resolution, branding application, dynamic route selection, and cached app config. Trigger: When working on frontend domains.

Installation

$ npx skills add smithery/rzyfront --skill vendix-frontend-domain

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/rzyfront · top by installs.

npx skills add smithery/rzyfront

Browse all from smithery/rzyfront

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version2.0
LicenseMIT
More metadata
author
rzyfront
version
2.0
scope
["root"]
auto_invoke
Working on frontend domains

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,987 B
  • docs SUMMARY.md 51 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Vendix Frontend Domain

Source of Truth

  • apps/frontend/src/app/core/services/app-config.service.ts
  • apps/frontend/src/app/core/models/domain-config.interface.ts
  • apps/frontend/src/app/core/models/environment.enum.ts
  • Route files under apps/frontend/src/app/routes/

Current Model

AppConfigService is async and builds an AppConfig object through setupConfig() and detectDomain(). It does not expose the old BehaviorSubject domain_config$$ pattern documented in legacy guidance.

It currently:

  • resolves the domain through ${environment.apiUrl}/public/domains/resolve/${hostname}
  • decides effective environment from domain config plus cached authenticated user environment
  • builds public/private routes dynamically
  • transforms branding through ThemeService
  • caches app config and user environment in localStorage

DomainConfig Reality

Current config includes fields such as:

  • environment
  • domainType
  • organization_slug
  • store_slug
  • organization_id
  • store_id
  • storelogourl
  • isVendixDomain
  • isMainVendixDomain
  • customConfig, which can include branding and currency

Rules

  • For new domain/app behavior, update AppConfigService and the route maps rather than creating duplicate domain-config services.
  • Treat app environment as the primary frontend router switch.
  • Keep branding resolution centralized in ThemeService.
  • Preserve SSR/browser guards already present in detectDomain() and theme setup.

Related Skills

  • vendix-app-architecture
  • vendix-frontend-routing
  • vendix-frontend-theme