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
CDCloudflare Developers
Created by proudparrot2 on 4/7/2024 in #general-help
Minecraft server over Cloudflare Zero Trust Tunnels
A few months ago, I connected a Cloudflare tunnel to my cloud server and linked a domain to tcp://localhost:25565 in order to play on a Minecraft server, and it worked fine. However, I am unable to reproduce this to play on a new Minecraft server. Was there an update to tunnels that blocked this? If not, could you help me troubleshoot my current setup? I want to be able to link a domain to my Minecraft server without revealing my origin IP to prevent abuse.
24 replies
SSolidJS
Created by proudparrot2 on 3/29/2024 in #support
<Index> with stores
Hello there, I'm building an application where I have a store defined in a separate non-component file which I have an array of objects being stored in there and being updated on a function. I'm mapping that store using <Index> using the setup below (openWindows is the store)
<Index each={openWindows}>{(data) => <p>component goes here</p>}</Index>
<Index each={openWindows}>{(data) => <p>component goes here</p>}</Index>
It starts out as an empty array, but when I add items to the store, only the first index in the store ends up being displayed. I'm verifying this by checking the length of openWindows
<p>{openWindows().length}</p>
<p>{openWindows().length}</p>
The count goes up, but no new elements are being displayed. Any suggestions would be great :)
26 replies