Task scheduler infra?
I'm looking for something that can do the following (or do essentially the same thing). It feels like something that would be some kind of open source tech / AWS service / something.
- I can /PUT an id, JSON blob, URL and timestamp
- When the timestamp occurs, the provided URL gets called with the json blob
- If multiple tasks are within a close enough timestamp (1-2 seconds), they get batched into a single API call with an array...
Need suggestions for better infra CICD
alright, so for this project i use docker containers for everything. my compose file has a redis cache for session management, python container hosting a flask api, frontend served inside an nginx reverse proxy as static pages (with a reverse proxy on the /api route to the flask backend, as well as a reverse proxy for a pgadmin subdomain). RN, on PR acceptance to main, i build all the containers in a gh action, publish them to docker hub in a private repo, then on the fly, convert the docker com...
Conditional render, why can't it be done?
I understand the reason this happens it that something doesn't understand that the Loader already checked if the prop is undefined, but typescript doesn't "pass the knowledge on".
Whose fault is it? Is it a typescript problem or is it an eslint problem? Or both?...

do something once server action is completed
Is there a way to achieve this (see title)? I’m using useTransition to start the action and need to close my modal once the action is completed successfully.
How to use discord.js in Nextjs app dir
Hello, I am trying to use discord.js in my app but getting alot of errors, is this even possible?:
```ts
import { getServerAuthStatus } from "@/lib/session";
import { z } from "zod";
import { giveRole } from "./actions";...
best way to fetch data in nextjs
I was wondering what's the best way at the moment to query for external apis in NextJS? I know that i want to put these requests in the api folder but should I use axios, fetch or react query for example?
@next/font turbo t3
You might be using incompatible version of
@next/font
(13.4.4) and next
(13.1.6). what version should i use? Also in the future where can i find the compatible versions?
I ran pnpm --filter nextjs add @next/font
...Solution:
You might be using incompatible version of
@next/font
(13.4.4) and next
(13.1.6). what version should i use? Also in the future where can i find the compatible versions?
I ran pnpm --filter nextjs add @next/font
...Typescript issue causing trpc functions to not have type checking
Hey, I'm in a create-t3-turbo app and have been banging my head against the wall trying to figure out this typescript issue. The trpc functions in my nextjs app don't have type checking, and it seems to have something to do with it not getting the AppRouter type correctly. The functions work when I try to use them, they just don't have type-checking. Does anyone have any ideas of what the issue might be here?

T3 Expo - react-native-gesture-handler
Anyone used this package with t3 turbo on expo app? I'm getting a package not found error on compile, even tho no errors on the editor. Anyone have any idea?
Also I'm trying to combine this package with react-native-reanimated and I get the same issue like the gesture handler package...
Server side caching with Next API
Unsure if this pattern is common, or if I am approaching this incorrectly.
I am using an api in my backend (next route handlers /api), and want to cache the data for 24 hours, so that I am only calling the api once a day.
I understand how this can be done in a typical server using memory, but am curious if there is a different method possible when using serverless (since there is no persistent memory) that doesnt involve s3 or introducing a whole db....
[vite-plugin-sass] Unexpected token u in JSON at position 0 error
I just migrated my react sass application from webpack to Vite but I haven’t been able to build since the migration took place.
The error below is what I encounter
```js
vite build...
useInfiniteQueryBug - queries to the end of page
I set up infinite scroll using the infinite query function in trpc. I have this bug right when the page loads, if you scroll super quick enough to the bottom of the webpage it'll cause a continuous retrigger until it's gone through the entire db. It seems like it's a race condition but I don't know the source of it.
Below is my route
```...
OpenId Connect Provider
Hey Guys, im trying to implement a custom oidc auth provider, i've checked the Auth.js / NextAuth docs and it seems you are supposed to implement it the following way
{
... provider details
} satisfies OIDCConfig<any>,
for some reason im getting an error "Type '{ type: "oidc"; }' is not assignable to type 'Provider'....
runtimeEnv property in env.mjs in create-t3-app
Hey all,
Was playing around entering some vars in the
.env
file and noticed that my app was building fine and using these new variables even though I hadn't added these vars to the env.mjs
file.
Upon further reading it looks like the server:
property in here is more of a safeguard to make sure you don't accidentally miss out env vars when building which is pretty neat 👍 ...ESLintrc.cjs config setup
Under Create T3 I setup ESLint in rules with:
```
rules: {
'@typescript-eslint/no-unsafe-member-access': ['off'],
}...
/app dir slower than pages?
Hey, is the /app dir actually slower than the regular pages dir from next 12?
If so, is it even a point migrating old next 12 apps to 13.4 with the new app dir?
Just saw this yt vid: https://youtu.be/3Q2q2gs0nAI...
Vercel - Subdomains
Hello hello, I wanted to ask whether there's a way for me to set-up two different projects (which are in different repos), one of the repos should be hosted on the main domain, which I've already done, and the secondary project (in the second repo) should be hosted on a subdomain?
I've attempted doing this, however, it's only giving me this DNS -> cname.vercel-dns.com. , which I've already set for my "www" cname record so I assume that this is not a correct way of doing it?
I saw that there's an option which allows me to set-up a branch of my repo to be hosted under a different subdomain? Is that the only option which I have?...