Turbo command to start Vite and APIs at the same time #7851
-
SummaryThe way I understand Vercel expects me to use Turborepo is to name different scripts in different workspaces In the setup I'm currently working on we use Turbo to run dev tasks with a single command. One example is starting a front-end as well as two APIs it depends on. I do this with this config:
We have around 5 different micro-frontends that are all independent from each other and have their own This used to work great up until a while ago, but something changed as mentioned in #7427 . Now our Vite frontend immediately stops after starting. Unfortunately when I add
Is there any way around this? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looking at the issue, it appears the problem with the Vite dev server has been fixed. Can you confirm with the latest version of As far as depending on persistent tasks goes, Turborepo is working correctly here. We can't depend on a persistent task since it will never exit. In the bigger picture, it's seemingly impossible for Said another way, the big question is: How would Turborepo know when your backends are prepared so that it can start the frontends? What I recommend you do today is use two separate |
Beta Was this translation helpful? Give feedback.
Looking at the issue, it appears the problem with the Vite dev server has been fixed. Can you confirm with the latest version of
turbo
?As far as depending on persistent tasks goes, Turborepo is working correctly here. We can't depend on a persistent task since it will never exit.
In the bigger picture, it's seemingly impossible for
turbo
to know when to start the frontends according to the state of your backends (since they don't exit).Said another way, the big question is: How would Turborepo know when your backends are prepared so that it can start the frontends?
What I recommend you do today is use two separate
turbo
processes, in two terminals. First, run aturbo run dev:backends
. S…