It would be great to be able to build a site that ...
# sst
a
It would be great to be able to build a site that is not in a subdirectory of SST. It would also be good to be able to define a build command as you can in StaticSite.
f
Hey @Alistair Stead, yeah I think @thdxr has mentioned
turborepo
or a similar project to speed up SST build in general.
There are quite a few things you mentioned. I’m curious about why it’s building twice. Is this happening inside CI? Can you share the build log?
a
I would be glad to contribute as part of a pull-request. Yes I'll share more details once at my laptop.
g
That would be awesome, I just checked out turborepo and it looks really great.
a
I need to write up my experiences but at the heart of them it relates to npm or yarn workspaces and the location of dependencies. NextJSSite has a hard coded path to the next binary. If you are using workspaces it is not in the same place
g
I feel you, I've been trying to make yarn workspaces work for some time now (I'm one of the principal authors of wsrun https://github.com/hfour/wsrun) and I know how tools can be completely oblivious to this setup. super frustrating 😄
(of course now with turborepo and yarn 2+ i don't think there is much need to continue wsrun development 😄 but still, I don't doubt that quite a few tools have not progressed to being workspaces aware)
s
i've been using yarn workspaces happily, but had to stick with yarn 1, rather than berry. even if i did the local packages config against it.
super keen to try out turborepo though