Ryan
06/15/2021, 1:27 PMsst start
it builds the SPA each time and the whole process takes a while.
I have a few questions:
• Is there a way to sst start <stack>
? Usually I am working on the frontend locally and don't want to bother building it (which takes forever)
• Can the Static Site skip building if there are no changes to the source?
• Should I have the frontend / backend in separate Apps, rather than separate stacks? Then I can just manually start the backend one. (But also means I need to do multiple deployments and start scripting it and... it feels like a workaround)
• Is there a guide for how to structure a project and general guidelines of when to split stacks and apps? It seems quite different to serverless framework...Ross Coundon
06/15/2021, 1:58 PMRyan
06/15/2021, 2:26 PMRyan
06/15/2021, 2:35 PMlerna
and just bump the version of my frontend?, then my sst
app can have a dependency on my frontend package rather than linking directly to source. I don't think that's how it's intended to work though right?Ryan
06/15/2021, 2:41 PMsst start <stack>
would be the best solution 🙂Ryan
06/15/2021, 2:46 PMif (!process.env.IS_LOCAL) {
new FrontendStack(app, "frontend-stack");
}
Ryan
06/15/2021, 2:47 PMFrank
sst start
single stack https://github.com/serverless-stack/serverless-stack/issues/448Frank
StaticSite
on sst start
. Let me think about it.