ChronicStone
ChronicStone
Explore posts from servers
CDCloudflare Developers
Created by ChronicStone on 5/27/2024 in #general-help
Custom install command
@Chaika Yep exactly, sorry I didn't see there was a dedicated help page for CF page. THat's exactly what I want to do, big thanks
3 replies
NNuxt
Created by ChronicStone on 2/19/2024 in #❓・help
Nuxt postinstall (nuxt prepare cmd) / nuxt build hangs forever
My project infos
------------------------------
- Operating System: Darwin
- Node Version: v18.16.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, devtools, experimental, alias, app, css, modules, imports, components, i18n, vue, macros, vite, build, typescript, nitro, runtimeConfig
- Runtime Modules: @unocss/[email protected], @pinia/[email protected], @bg-dev/[email protected], @vueuse/[email protected], @vue-macros/[email protected], @nuxtjs/[email protected], [email protected], [email protected], @nuxtjs/[email protected], @formkit/auto-animate/[email protected], normalizedModule()
- Build Modules: -
------------------------------
------------------------------
- Operating System: Darwin
- Node Version: v18.16.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, devtools, experimental, alias, app, css, modules, imports, components, i18n, vue, macros, vite, build, typescript, nitro, runtimeConfig
- Runtime Modules: @unocss/[email protected], @pinia/[email protected], @bg-dev/[email protected], @vueuse/[email protected], @vue-macros/[email protected], @nuxtjs/[email protected], [email protected], [email protected], @nuxtjs/[email protected], @formkit/auto-animate/[email protected], normalizedModule()
- Build Modules: -
------------------------------
5 replies
NNuxt
Created by ChronicStone on 2/19/2024 in #❓・help
Nuxt postinstall (nuxt prepare cmd) / nuxt build hangs forever
Only similar issue reference I've find so far is this : https://github.com/nuxt/cli/issues/169 Which also points me to a module being the problem
5 replies
NNuxt
Created by ChronicStone on 2/19/2024 in #❓・help
Nuxt postinstall (nuxt prepare cmd) / nuxt build hangs forever
I tried to run this :
bunx nuxi prepare --logLevel verbose
bunx nuxi prepare --logLevel verbose
But I didn't get any extra log
5 replies
CDCloudflare Developers
Created by fantuci on 7/31/2023 in #pages-help
Error deploying nuxt
Hi did you manage to solve this N
2 replies
CDCloudflare Developers
Created by crossbeau on 8/17/2023 in #pages-help
Nuxt JS on Pages environment variables not working
@crossbeau Did you find an answer ?
6 replies
TtRPC
Created by ChronicStone on 8/28/2023 in #❓-help
tRPC subscription : Access to socket ID from subscription
I strongly inspired from the ideas presented in this article : https://preciselab.io/trpc/
5 replies
TtRPC
Created by ChronicStone on 8/28/2023 in #❓-help
tRPC subscription : Access to socket ID from subscription
I managed to get this working
5 replies
TtRPC
Created by ChronicStone on 8/28/2023 in #❓-help
tRPC subscription : Access to socket ID from subscription
That's the idea of what I'm trying to do...
5 replies
TtRPC
Created by ChronicStone on 8/28/2023 in #❓-help
tRPC subscription : Access to socket ID from subscription
// wsServer.ts
const WebSocketServer = WebSocket.Server || WSWebSocketServer;
const wss = new WebSocketServer({
port: 3002,
});

const handler = applyWSSHandler({ wss, router: appRouter, createContext: () => ({}) as Context });

wss.on('connection', (ws) => {
consola.log(`➕➕ Connection (${wss.clients.size})`);
ws.once('close', () => {
consola.log(`➖➖ Connection (${wss.clients.size})`);
const storage = useStorage('db')
// HERE, SOMEHOW GET UNIQUE SOCKET ID
const socketId = ...
const linkedUserId = storage.get(socketId)

// If present linked user ID, mark user offline
if(linkedUserId) db.update(userOrganizationsTable)....

});
});

consola.log('✅ WebSocket Server listening on ws://localhost:3002');
// wsServer.ts
const WebSocketServer = WebSocket.Server || WSWebSocketServer;
const wss = new WebSocketServer({
port: 3002,
});

const handler = applyWSSHandler({ wss, router: appRouter, createContext: () => ({}) as Context });

wss.on('connection', (ws) => {
consola.log(`➕➕ Connection (${wss.clients.size})`);
ws.once('close', () => {
consola.log(`➖➖ Connection (${wss.clients.size})`);
const storage = useStorage('db')
// HERE, SOMEHOW GET UNIQUE SOCKET ID
const socketId = ...
const linkedUserId = storage.get(socketId)

// If present linked user ID, mark user offline
if(linkedUserId) db.update(userOrganizationsTable)....

});
});

consola.log('✅ WebSocket Server listening on ws://localhost:3002');
5 replies
DTDrizzle Team
Created by daniel on 6/11/2023 in #help
InferModel including relations?
@intelligently Good point, thanks
16 replies
DTDrizzle Team
Created by daniel on 6/11/2023 in #help
InferModel including relations?
Hi @danielsharvey @gerty1 Did one of you happen to have found a workaround for this ?
16 replies
DTDrizzle Team
Created by sik on 8/10/2023 in #help
how to convert serial to uuid type
Experiencing the same thing right now, did you find a fix for this ?
8 replies
DTDrizzle Team
Created by sik on 8/10/2023 in #help
how to convert serial to uuid type
Hi @sikritidakua
8 replies
NNuxt
Created by ChronicStone on 5/25/2023 in #❓・help
Nuxt 3.5 - Experimental typed router - Default layout not applying anymore
Wait, how do I close this
6 replies
NNuxt
Created by ChronicStone on 5/25/2023 in #❓・help
Nuxt 3.5 - Experimental typed router - Default layout not applying anymore
!solved
6 replies
NNuxt
Created by ChronicStone on 5/25/2023 in #❓・help
Nuxt 3.5 - Experimental typed router - Default layout not applying anymore
!close
6 replies
NNuxt
Created by ChronicStone on 5/25/2023 in #❓・help
Nuxt 3.5 - Experimental typed router - Default layout not applying anymore
!resolved
6 replies
NNuxt
Created by ChronicStone on 5/25/2023 in #❓・help
Nuxt 3.5 - Experimental typed router - Default layout not applying anymore
Nevermind, I had a key on the rendered NuxtPage which was breaking the app rendering, changed the key, issue was gone
6 replies