Devin
11/06/2021, 9:35 PMmyCoolApp
/stacks
/frontend - a react app
/website - a gatsby site
I’d then have my app deploy at
<http://app.myCoolApp.com|app.myCoolApp.com> //react site
<http://www.myCoolApp.com|www.myCoolApp.com> //gatsby
<http://myCoolApp.com|myCoolApp.com> // gatsby
Or something. Really I just want to avoid Next but have some static content for SEO. Any ideas?Devin
11/06/2021, 9:54 PMconst reactApp = new sst.ReactStaticSite(this, "ReactSite", {
path: "frontend",
customDomain:
scope.stage === "prod"
? {
domainName: `app.${URL}`,
domainAlias: `wwww.app.${URL}`,
}
: {
domainName: `dev.app.${URL}`,
domainAlias: `wwww.dev.app.${URL}`,
},
});
const staticSite = new sst.StaticSite(this, "Site", {
path: "website/index.html",
customDomain:
scope.stage === "prod"
? {
domainName: `${URL}`,
domainAlias: `wwww.${URL}`,
}
: {
domainName: `dev.${URL}`,
domainAlias: `wwww.dev.${URL}`,
},
});
Devin
11/06/2021, 9:59 PMJustin Philpott
11/06/2021, 10:03 PMDevin
11/06/2021, 10:03 PMdev/prod
with a deployment using serverlessDevin
11/06/2021, 10:04 PMJustin Philpott
11/06/2021, 10:25 PMDevin
11/06/2021, 10:28 PMJustin Philpott
11/06/2021, 10:30 PMJustin Philpott
11/06/2021, 10:31 PMDevin
11/06/2021, 10:31 PMDevin
11/06/2021, 10:35 PM