Hey random thought, should the StaticSite construc...
# sst
t
Hey random thought, should the StaticSite construct have the ability to spawn a local dev server when running sst start?
With some kind of tunnel from cloudfront to that localwebserver
t
Probably a bit tricky for us to do but can you share more about what this would enable? Are you looking to share it with other people?
t
Just the idea that you can run your whole stack locally with one command is pretty cool. I guess the tunnel is kinda overkill. But starting it from serverless stack would skip the need for sst-env. You could do something like this
Copy code
new StaticSite(this, "Site", {
  path: "path/to/src",
  dev: "vite"
});
with a PORT injected in. and the url value returned from the construct could be
<http://localhost>:${port}
so you can use it in the sst outputs
t
Yeah I was thinking about auto starting the dev server, definitely something to think about