devtools icon indicating copy to clipboard operation
devtools copied to clipboard

How to use Devtools in build production

Open ekinkarakol opened this issue 2 years ago • 5 comments

📚 Is your documentation request related to a problem?

I want to use Nuxt devtools in production. how do I use?

🔍 Where should you find it?

No response

ℹ️ Additional context

No response

ekinkarakol avatar Jul 19 '23 09:07 ekinkarakol

Nuxt DevTools doesn't support running in production yet, but it's in our roadmap. Stay tuned.

antfu avatar Oct 11 '23 10:10 antfu

Hi there,

I am creating a module for AB experimentation which allows for easy variant overrides for a third party solution. We would love to use Nuxt Devtools to host a custom module that allows us to override variants for testing purposes and expose that to everyone in our local, but also deploy previews hosted on Netlify.

This is working fine for local development, but we would like to run these in our Netlify Deploy Previews as well. The app is build and deployed using netlify deploy --build --context deploy-preview which just fires yarn build.

I think this issue must be related to the main question of this issue depending on what is meant with production.

Digging into the source I noticed it stops initialisation on the nuxt.options.dev part of the module-main, yet if I try to override the dev value in nuxt config it does not change the value to true.

Are there any workarounds? Am I trying something that the Devtools are not really supposed to be used for? And otherwise is there a timeline for when such functionality might be supported?

Thank you!

ItsMeDelanoDev avatar Feb 09 '24 17:02 ItsMeDelanoDev

@ItsMeDelanoDev currently Nuxt DevTools is for dev environment, there is no support for production for now

arashsheyda avatar Feb 09 '24 19:02 arashsheyda

@arashsheyda Thank you for the answer! How likely will the Nuxt DevTools become supported in builds like a Netlify Deploy Preview in the (near) future? Or am I simply just trying the wrong thing here.

ItsMeDelanoDev avatar Feb 11 '24 16:02 ItsMeDelanoDev

@ItsMeDelanoDev I know that it's on the roadmap.

arashsheyda avatar Feb 12 '24 04:02 arashsheyda