env schema.mjs reading values as number
Most of the times env vars are strings, so my schema definition of a value looks like
NEXTAUTH_URL: z.string() for those vars.
But if I want to read numeric values like a port, it seems I can't just do EMAIL_SERVER_PORT: z.number().
Do I generally have to read env vars as string-ish values, and have to parse them to numeric values in my code later on, or am I doing something wrong?...How do you push schema changes to a dev branch with planetscale and prisma
How do you push schema changes to a dev branch with planetscale/prisma
Cannot use the same host twice in Next.js 13
On the left of the screenshot, I am fetching posts in a layout. On the right, I am streaming comments in. If I use the same host for comments as I did for posts (https://jsonplaceholder.typicode.com/comments), the page infinitely loads. If I switch it out for a different host (https://dummyjson.com/comments ), it works fine.
I've checked the endpoint in the browser and it responds quickly every time...

When not to use tRPC?
If I'm building a mobile and/or a web app with React Native / NextJS (TS), is there any scenario you would advise people not to use tRPC? (We can assume all the clients are in the same repo as the server)
Are there any current limitations or cons of tRPC that people should be aware of?...
Add Admin Role to T3 Stack
Hi, not sure what I'm missing for this
in user Schema
and then the enum for Role.. thats okay,...
role Role @default(USER)
role Role @default(USER)

how to keep git history of two repos that are being added to new monorepo
is there a recommended practice around this? does it involve using submodules or just cloning them into the monorepo or something eelse?
trpc v10 (but not v9) stuck loading any query
disregard my post. It's working in my other laptop. Maybe related to my node version? no idea.
NextAuth authorizationParams not working
Hey guys,
I wanted to pass an error param to the signin/signout page for nextauth but this doesn't seem to work... SignOut doesnt even support params it seems but signin should. Am I missing something here??
...
await signIn(undefined, undefined, "error=SessionRequired");
await signIn(undefined, undefined, "error=SessionRequired");
beginner golang resources
Any recommendations for how to get started with golang? I’m not too worried about syntax, more package management, how to set up a good dev environment, etc
Send default value along with form instead of empty string
I have a form that users should use to update their profile. The problem is when the user wants to change any field, it will only send the field that he changed, sending the rest as blank strings (see ss). The form uses a default value of the db entry. It appears fine on the frontend but i dont understand why it only picks the fields that i changed. I suspect it has something to do with react-form-hook only registering the changed components. I tried adding a default value to the react-form-hook...

can this be further simplified
i have run into an issue in an astro template and am gonna make a pr with the fix. but the current solution feels hacky
```ts
const { href, class: className, ...props } = Astro.props;
let pathnameWithoutSlash = Astro.url.pathname.replace(//$/, "");
...
Best Next Stack?
What is basically the best stack for Next?
E.g. stuff like Express, Prisma, MongoDB, Etc for backend and server stuff?
I've been procastinating starting a new project (with database and stuff) because I struggle with choosing the right packages...
t3-turbo monorep, install packages in sub folders
Hi
I am migrating my mindset/knowladge from .NET/C#/Angular to your promising t3 ideology/stack.
I did git clone create-t3-turbo , "pnpm i", but it only installed root node packages , and ignored subproject (prisma, nextjs and etc).
What am I missing? Obvisly I could just write a npm postinstall task to "npm i" in each sub-project, but that shoud have been already in the template. So... I guess I am missing something , am I?...

how exactly bundle size works
Hi. I think it's very newbie & dumb question. But i've been trying to get my head bundle size .
According to google
An app's bundle size is the amount of JavaScript a user will have to download to load your app.
So does that mean not each & every dependency contributes to bundle size?
e.g. if im using nextjs as full stack and i have mongoose as a dependency what shouldn't contribute to client side Js....typescript and trpc data validation
another noob question from me, but trying to figure out typescript.
So if I have a piece of code like this in my router:
```export const coinRouter = router({
getCoin: publicProcedure
.input(z.object({ name: z.any()}))...
Prisma tips?
So, i've been using
prisma migrate dev for every migration for awhile now. But I only just read the docs that you shouldn't use this to migrate (?) other environments like prod and staging
What commands do y'all use consistently?...I just installed tailwindcss forms package but it breaks my input styles
I have just installed
@tailwindcss/forms package and then I put require("@tailwindcss/forms") inside plugins. I noticed that it breaks input styles, I dont know why but my styling commands are not working after that.
createContext and typescript
if i have context like this
and then in next _app doing something like
...
export const FavoriteContext = createContext<any>(null)
export const FavoriteContext = createContext<any>(null)
const [favorite, setFavorite] = useState<Array<string>>([]);
const [favorite, setFavorite] = useState<Array<string>>([]);
<FavoriteContext.Provider value={{ favorite, setFavorite }}>
<FavoriteContext.Provider value={{ favorite, setFavorite }}>
Next.js API route error in prod
so, basically I have an API route which throws error (500) only in prod, it works fine on dev server, I even built the app locally but it works just fine.
Code -
```ts
import type { NextRequest } from "next/server";...