are there fairly common on prem server solutions out there?
I've been thinking about this since aws and other cloud services are excellent for bootstrapping a small project or company, but it looks like it's not really a great long term solution. I agree with the sentiment here https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47e0 and was wondering what common server on prem solutions, especially for getting bandwidth, there may be, because apparently in the long run, that's considerably cheaper than using a cloud service
How are you implementing auth in NextJs?
I'm curious how y'all implement auth in NextJs. I'm considering different options, but is like to hear different perspectives.
Because of the new NextJs update and Next-auth lagging behind, I might just implement OIDC, Authz code flow w/ PKCE myself......
T3 for SSG
Does anyone have an example project of a T3 App using SSG? Reading the docs, i am not sure if i should add the SSG Helper context (https://trpc.io/docs/v10/ssg-helpers) somewhere in where the TRPC Settings are defined and have them be imported directly from utils/trpc.
Exporting tRPC routes to another project
Hi everyone. I'm currently running an Electron app, which contains the main project. I also have a NextJS app which handles the website for the download of the Electron app, and it has the application's API un der
pages/api, which the Electron app communicates with. I really like using tRPC, so I was wondering if it's possible to somehow infer the tRPC types across the two projects. (These two projects are under different repos)What is this auth feature called and how do I do this?
When I am in a desktop app and need to authenticate myself, the browser opens with an auth page and when I added my credentials successfully/logged in through oAuth, I am also authed in the desktop app. I have a web app with nextAuth and I want to auth people through that when they want to log into my desktop app.
Examples if you don't know what I am talking about:
Logging into github through vscode(for vscode setting sync),
figma also does this(this is the link that opens:
https://www.figma.com/app_auth/id/grant?desktop_protocol=figma&locale=en)...
lazy load react context
Is it possible to "lazy load" react context? ie make a network request the first time the context is required (by a useContext, not by the provider), and then keep the context for the duration of the session?
React Typescript custom pageLayout
React Typescript pageLayout Hi everyone, I'm trying to achieve something and it seems very impossible with React && typescript. I have an application that has two header(s) at the top of every page, in this case the Login page takes Header1 and the dashboard page takes Header2, so the Header(s) depends on the page routing. Does anyone have an ideal on how to make this work ? I can also share what I...Hosting my app - best services? pricing evaluation? ...
I've been built an app I want to deploy and I'm looking over my options... Which boils down to Vercel, Railway or Netlify.
I was studying their prices and comparing etc. However, I still don't think I have a good understanding of how much an average website would cost. How much traffic should I expect, how much resources will I need, what tier will be enough etc...
The short version of my app is that it's a Video content based platform where user's can buy others content. And my infra is roughly this:...
Three JS path following
Hi all,
I'm looking to recreate this effect in react-three-fiber. My assumption is that I can create a curve with an array of points, and then create a mesh that follows the path, or perhaps particles? I'm pretty new to threejs (but not new to 3d) so I'd appreciate a nudge in the right direction here.
In blender it's pretty trivial to create a curve and constrain a mesh to that curve, hopefully it's fairly easy in three as well. If I have to write a gsls shader for it I'm out of luck but perhaps a particle or mesh solution would be doable...
Question About DayJS Date Formatting
Hey everyone, sorry for the "just google it lol" question but I've tried searching around and can't find anything. I am trying to parse a date using dayJS with the following code. However, it returns invalid date. Could anyone point me in the right direction on how I could solve this? Thanks!
```ts
import dayjs from "dayjs";
import customParseFormat from "dayjs/plugin/customParseFormat";...
Nextjs+Expo(React Native) - Would trpc work?
I'm not sure about how uploading on Vercel works, but if I create an Expo app with NextJS for the web. If someone is on the phone and hits a route on the server, will that trigger the Vercel cloud function to run because the person on the phone is hitting that route?
Augmenting default user in next auth
Ive changed the default parameters for a user in next auth to also include user name so that when I get my session I can access "sessionData.user?.username?". This all worked locally until I decided to deploy to vercel. The following shows my screenshots and the error I got in vercel. Any ideas on how to work around this?

Make .useInfiniteQuery global
I have an infinite query and 2 different places where I want to have the data/fetch new data. These are my considerations:
1. I can't pass the data via a simple child component (lifting state up) because the other place is a page created via dynamic routes (
[id].tsx)
2. I can't make the .useInfiniteQuery reside outside of a component, so I can't really share data via exporting
3. I tried using zustand/jotai to make the data and the fetchNextPage() global. This works as far as getting the first page of data and also running another db query for the second page, but fails when I want to get the data of the second page. (which means I really haven't found a way to get data from this point on)...ISR in frameworks
I'm just curious, I have an application that is mostly static and doesn't need to be updated super often so I enjoy the ISR that next offers. That way I get the speed of static pages, but I can get new data when it is added. My question is, is there any other frameworks that use this feature? I didn't see anything about it mentioned in the astro docs for example (though I may have just missed it or it may be called something else there).
React Typescript SassError Undefined variable
I need some help on this please 🙏 I am new to using
sass with react && typescript, so I declared a variable in a scss file but all I'm getting is an error that says Undefined variable
How to conditionally fetch data?
In my mind I want to do a mutation that returns data, but I guess that doesn't work.
I have an edit button, and when the user clicks it and therefore goes into edit mode, I want to fetch some additional data from db....
TypeScript confusion
Can anyone explain why third-line errors but the fourth line works?
```ts
type First<T> = T extends any[] ? T[0] : never;
const myarr = [1, 2, 3]...
Not sure about router change?
By using next for few month , I have a question: What magic happens when router change?
Instead of empty html and a main js,next give me a contentful html and that is why nextjs is good for seo.After hydration,the
page become reactive.
I was thinking that Nextjs's job is done....
What's the T3 way to load a font from google fonts?
above, I have it in
_document.tsx right now
```
class MyDocument extends Document {
render() {...