sst.config.ts Summary
This file defines the Serverless Stack (SST) configuration for the
hai-agents application. It outlines the entire infrastructure, which is modularized and located in the infra/ directory.Key Components:
- Application Core: Defines basic app settings like name and removal policies.
- Infrastructure (
runfunction): Imports and orchestrates various infrastructure components: storage: Data storage (e.g., S3).api,api-routes: API Gateway and its routes.frontend: The web frontend.bus: An event bus for asynchronous communication.- Other modules for secrets, synthetic data, discovery, criteria, interop, and sync.
- Development Tools: Includes dev commands to run a local studio and to sync types between different parts of the application.
- CI/CD: Configures automatic deployments to a
stagingenvironment from themainbranch.
Architectural View (Initial)
This diagram shows the high-level components of the
hai-agents application as defined in sst.config.ts.graph TD; subgraph "hai-agents SST App" A["sst.config.ts"] --> B["Frontend"]; A --> C["API"]; A --> D["Storage"]; A --> E["Event Bus"]; A --> F["Secrets"]; A --> G["Other Infra (Sync, Interop, etc.)"]; end C --> H["API Routes"]; H --> G; E --> G; subgraph "Development" Dev1["Dev Command: Studio"]; Dev2["Dev Command: SyncTypes"]; end subgraph "CI/CD" CICD["Autodeploy 'main' to 'staging'"]; end A --> Dev1; A --> Dev2; A --> CICD;
Seonglae Cho