https://serverless-stack.com/ logo
#sst
Title
# sst
a

Aurelien Negrier

10/07/2021, 10:11 AM
Hey there, does anyone know how to activate sst auto deploy localy when
schema.graphql
file is modified ? Actually when I change my
schema.graphql
I have to stop sst localy and restart
sst start
command
m

Mike McCall

10/07/2021, 2:15 PM
Yeah, this is a bit annoying but if you open any stack/src file and just hit save it'll rebuild and ask to redeploy.
t

thdxr

10/07/2021, 2:23 PM
Right now I don't think our watcher can tell that your stacks depend on a non-js file
a

Aurelien Negrier

10/07/2021, 2:51 PM
Ok thank you, it work, but takes a long time, 30-40 seconde on a small stack. Hard to work with it
t

thdxr

10/07/2021, 3:14 PM
Yeah this is similar to adding routes on api gateway, because it needs to provision new things in AWS it can be slow
One of the tradeoffs with shifting more application functionality into the infrastructure layer
f

Frank

10/07/2021, 4:41 PM
Created an issue for this. We should watch for the schema file and prompt for re-deploy. https://github.com/serverless-stack/serverless-stack/issues/902