Kal
Kal
NNuxt
Created by Kal on 2/22/2025 in #❓・help
In nuxt, where to specify compile-time flags?
With a Vue+Vite app, you can specify some compile-time flags like below. For instance, I never use Options API, and apparently disabling it saves ~10kb off your final build. How can I do the same in Nuxt? import { defineConfig } from 'vite' export default defineConfig({ define: { __VUE_OPTIONS_API__: 'false' } })
5 replies
NNuxt
Created by Kal on 2/11/2025 in #❓・help
How to get a rich text editor in Nuxt Content/Nuxt Studio
I'm not interested in markdown, instead I'd like a rich text HTML editor as you'd find in a regular CMS's. Is this possible? What about a Vue component that wraps a an editor? Is that what I should be doing?
5 replies
NNuxt
Created by Kal on 4/13/2023 in #❓・help
How to get dynamic nested routes like this?
Example path: /something/3/item-4 Numbers are dynamic. My pages files setup; not working: /something/index.vue /something/[id].vue /something/item-[id]/index.vue
3 replies
NNuxt
Created by Kal on 3/15/2023 in #❓・help
How to get page title globally when using useHead() ?
useHead() seems to be strongly recommended for setting page titles & other meta, great, it works... but how can I access the current page meta data globally, in any component? Previously I used some form of {{ route.meta.title }} to do so, however, route.meta doesn't seem to be affected by changes made with useHead(). Use cases: a global header component, or perhaps some kind of breadcrumb component living in a layout. I literally just need the current page title, anywhere.
4 replies