normigonzalez
normigonzalez
TTCTheo's Typesafe Cult
Created by normigonzalez on 5/7/2023 in #questions
The "experimental-edge" flag in nextjs allows me to deploy websocket in vercel?
That's what I was going for. Almost all of my backend goes through the websocket (I just have a couple of additional http queries like login, which I guess are negligible). So, since I'm going to have to build a server to be able to use websocket, for that I already put the websocket in nextJS (if possible) and simply deploy to heroku or railway and I "sacrify" the few or no advantages that serverless would offer me in my case . If I could even use API routes and not have to build a custom server that would be great. What do you think of doing something like this? https://stackoverflow.com/a/71415736/10476393 I understand that if I deploy it on a persistent connection it should work right?
8 replies
TTCTheo's Typesafe Cult
Created by normigonzalez on 5/7/2023 in #questions
The "experimental-edge" flag in nextjs allows me to deploy websocket in vercel?
I understand. Rather than using Pusher, I prefer to use a separate server in express which I'm already more familiar with. And in that case, I'm going to have to "manage, scale, and configure my infrastructure" anyway, right?
8 replies
TTCTheo's Typesafe Cult
Created by normigonzalez on 5/7/2023 in #questions
The "experimental-edge" flag in nextjs allows me to deploy websocket in vercel?
Thank you so much! Another question... could I use websocket in the nextJS API and deploy to something like Heroku or Railway? I know many just use an external server like express, but I would prefer to use everything in the nextjs API. Or at least monorepo.
8 replies