The other day I saw a reference to use SST + Gatsb...
# guide
t
The other day I saw a reference to use SST + Gatsby but I can’t find the link anymore, idk if it was in a slack thread or somewhere in the guide but I can’t find it anymore, have anyone seen it recently?
d
I’ve done it. What are you looking to do?
The docs are here. Ime this was pretty straightforward https://docs.serverless-stack.com/constructs/StaticSite#creating-a-gatsby-site
t
That’s what I was looking for, ty!
@Devin actually, there was a “example” somewhere (can’t find it in the examples link) about how to set it up deeper, basically I’m trying to build a static site and make it like “recompile” every time that the content updates. Right now I’m scheduling a “job” that would run the “gatsby build” anytime that the content gets updated; potentially it would trigger a “seed” action/webhook or something, I don’t finish the details there
d
Hmm I haven’t seen that. Sorry I can’t be of further help 😞
f
Thanks @Devin!
@Tonny (sstNerd) r u looking to set up git push to deploy work flow? Where git pushing content updates triggers SST app to deploy?
t
@Frank more like a cms-behavior: an user updates the content (stored in dynamo) so then gatsby rebuilds the static files (still thinking about how to make it happen)
f
One flow on top of my head is to have a Lambda subscribed to DynamoDB stream, and make an API to trigger the CI service to run a build. If you are using SEED, you can use the CLI - https://seed.run/docs/deploying-with-the-seed-cli.html
Does that work for you?
t
@Frank that would work for sure, ty!