Hello everyone :wave: I am currently leveraging SS...
# help
n
Hello everyone 👋 I am currently leveraging SST to deploy a small rest api. I really like the workflow and the local dev aspect of SST. However, I have a few functions that are not for the API (custom resource handlers, functions triggered by other events, etc.) and I'm wondering if there is a way to disable or exclude them from the 'local dev' behavior (websocket stuff). I'd like to keep using the sst.Function construct for those functions because of the ease of build with esbuild...
t
Hey Nathan thanks for using SST! I'm curious what downsides you have when running these functions locally. Is it speed?
n
No, nothing like that. The problem here currently is my custom resources fail to deploy because of the WS logic that gets injected into those handlers during sst start
t
Ah I see. Would adding a prop that disables this work for you?
n
Yes, i think it really is that simple ha...
t
Planning on working on this later today
n
awesome! thanks. I'd be happy to contribute if needed
Need to do some testing with it to make sure there's no weird side effects
but it'll likely go out in the next release
n
right on. short and sweet, i like it. Whats the release schedule? Or is it just whenever there's enough finished?
t
We release a few times a week, pretty flexible with it. Hopefully will do one today or this weekend
Alright verified it works. One thing to note it obviously won't rebuild instantly if you change the code, you'll need to stop and restart
sst
. We can probably make this a bit more automatic in the future
n
Right, i gotcha. I actually just tested this locally as well and seems to do what its supposed to. Thanks for the quick work!
t
Latest release supports a flag
enableLiveDev: false
on Functions to disable that feature