Skip to main content
Nuxt provides the <DevOnly> component to render a component only during development. The content will not be included in production builds.

Usage

[app/pages/example.vue]

Slots

#fallback

If you ever require to have a replacement during production.
Be sure to test fallback content using nuxt preview to ensure it works correctly in production.