import * as sst from "@serverless-stack/resources" ; interface ReactSiteStackProps extends sst . StackProps { readonly api : sst . Api ; } export class MainStack extends sst . Stack { constructor ( scope , id , props ) { super ( scope , id , props ) ; const site = new sst . ReactStaticSite ( this , "Frontend" , { path : "src/sites/react-app" , environment : { REACT_APP_API_URL : props . api . url , } , } ) ; this . addOutputs ( { URL : site . url , BucketArn : site . bucketArn , BucketName : site . bucketName , DistributionId : site . distributionId , DistributionDomain : site . distributionDomain , } ) ; } }