Open Tobbe opened 1 year ago
Thanks @Tobbe - I've seen and been asked about the requests the dev server makes to discover functions and since they can appear like api request errors in RedwoodJS logs it's misleading and makes the DX less confident.
I also see a "no-polling" https://github.com/inngest/inngest/blob/d5d756791631b9d25e0f31dc1f7190480456bbeb/cmd/commands/dev.go#L26 flags which I think could resolve the questions I've gotten about a less that great experience when either your app or dev server isn't up.
I imagine the downside would be that the dev server would have to be restarted perhaps when new functions are added?
Also, the setup readme should note these two dev server flags.
Inngest's dev server automatically tries to find apps to connect to on a bunch of different ports and paths.
With RW we know exactly what url to connect to, so we can disable automatic discovery to limit spam in api-side console logs. Disable discovery by passing
--no-discovery
to the inngest-cli command.