Does `turbo` in experimental next.config.js affect prod or only dev?
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
It's unclear to me if setting
But in the first link there is a warning against using it in production.
turbo like described [here](https://nextjs.org/docs/app/api-reference/config/next-config-js/turbo), even with no configuration inside it, does affect production or only dev. Because [here](https://nextjs.org/docs/app/api-reference/turbopack#unsupported-features) it says: Turbopack currently only supports next dev and does not support next build.But in the first link there is a warning against using it in production.
9 Replies
Korat
Hi @Polar bear, turbopack is used only for bundling it doesn't work on server. Turbopack is stable so you can use it. I think they mean that turbo configuration is experimental and can change as it's mark as experimental.
The turbo configuration afaik does not actually enable turbo it just configures it, to enable it you need to modify the
next dev script to be next dev --turbopack this is supported, but if you tried to do next build --turbopack your build will likely fail, and if it doesn't then you will run into countless issues.Polar bearOP
The docs are not clear and the two links above make it hard to make a sense.
Would like a clarification from someone who’s certain
Would like a clarification from someone who’s certain
so only turbo config is experimental
Polar bearOP
I know but putting turbo config makes things unstable? In prod?
Even if there’s no config options inside
@Polar bear I know but putting turbo config makes things unstable? In prod?
Korat
if you change default behaviour of turbopack (config) it can brake, because of that it is marked as experimental
Polar bearOP
yeah, I know that, too. Guess I won’t get a definitive answer, but nvm.
Just hope that someone from Vercel sees that and clarifies or just fixes the docs to be more clear.
Just hope that someone from Vercel sees that and clarifies or just fixes the docs to be more clear.