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";...
why grpc considered as a joke?
in this video i was watching early theo says that grapc is a joke
https://www.youtube.com/watch?v=jd5JwXoDXFo
i need to know why mabye that save my time insted of learn it...
how to fetch without fetch API in client components in nextjs 13
The beta documents just say that a third party library should be used like SWR, but reviewing the docs for SWR shows that fetch is used beneath it. I'm seeing the same for react query.
How to Auth with CredentialsProvider
Can someone link me to an article/build/tutorial/docs that show how to sign up new users and authenticate them in the T3 stack by using the CredentialsProvider from next-auth rather than OAuth-ing with 3rd party service? I've found lots that show how to OAuth but the CredentialsProvider seems a bit more involved and something I definitely want in my apps.
Any example repo with advanced use of t3
I'd mainly would like to see trpc-query mutation side effects (https://tanstack.com/query/v4/docs/guides/mutations?from=reactQueryV3&original=https://react-query-v3.tanstack.com/guides/mutations#mutation-side-effects) & project organization. I was searching around in github but found mostly basic examples.
Inferred Zustand types...
Hi,
New to Zustand. The typescript guide says you can infer types with seems to work, but this seems too easy. All the examples have the state explicitly created, not inferred. Am I missing something obvious?...
combine but this makes it tricky to do nested state. I found that simply doing type State = ReturnType<typeof state>
export const useStore = create<State>()(state)
type State = ReturnType<typeof state>
export const useStore = create<State>()(state)
Already in a git worktree
When using CTA, I select the "Initialize new git repo" option but after the
npm install it says there is all ready a git worktree and ask me if I want to initialize a new one. What's going on here? Why is it trying to initialize a git repo twice?
Warning: "my-project" is already in a git worktree. Would you still like to initialize a new git repository in this directory? (y/N) ...Type that converts all strings to function that returns string
I have an object like ```ts
{
foo: 'hey'
bar: {
bar1: 'sup'...
Protecting PDF
I want to create a project where people can upload PDFs, but I only want users to be able to see certain pages of a PDF unless they meet certain requirements. I can't do this on the client since people would obviously be able to check their network tab and get the PDF's URL from there 😛 I've been checking other websites that do something similar and it seems they fetch each page of the PDF as HTML instead of the entire file... Any idea how I could do something similar or if there is another way...
NextJS 13 tailwind responsive websites
I'm trying to make a simple responsive website with nextjs 13 and tailwind, but the media queries aren't working as expected. When on mobile "md:" classes is triggered. Is this a bug?
