proudparrot2
proudparrot2
Explore posts from servers
NNuxt
Created by proudparrot2 on 5/29/2024 in #❓・help
Serving Nuxt with an Express server
I want to serve Nuxt inside an Express server. Is this possible? The reason I want to do this is because I have a function that handles incoming websocket requests and deals with them accordingly Currently using express alongside a node:http server
httpServer.on('upgrade', (req, socket, head) => {
route(req, socket, head)
})
httpServer.on('upgrade', (req, socket, head) => {
route(req, socket, head)
})
13 replies
NNuxt
Created by proudparrot2 on 5/8/2024 in #❓・help
Object literal may only specify known properties, and 'ui' does not exist in type InputConfig
Hi there, I'm trying to specify icon packs to use with Nuxt UI. However, when I go to put them into my Nuxt config as specified in the Theming section of the docs (https://ui.nuxt.com/getting-started/theming#collections), TypeScript complains that ui does not exist in type InputConfig ... and, for some reason, Nuxt UI stops working (it was working before adding the ui object. Nuxt config:
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxt/ui'],
ui: {
icons: ['lucide']
}
})
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxt/ui'],
ui: {
icons: ['lucide']
}
})
4 replies