Tailwind isnt working
Hi guys, I am trying to install tailwind with vite using npm and it doesnt work no mather what I do! I followed every single step in tailwind docs and stiill doesnt work, my vs code isnt recording any error im my code and I checked it so many times and there's nothing wrong. Can someone help me with these please?
node-canvas error
node-canvas error
...
Is there any other library I can use since `node-canvas` seems to be an issue, please recommend.
Is there any other library I can use since `node-canvas` seems to be an issue, please recommend.
Prisma Schema Single Type
Hi fellow cult members.
I want to create a model for a 'single' type (not sure if that's the correct term) in my Prisma schema. My understanding is a Prisma
Model is something that can be created multiple times. I don't want this. I want just a single instance of a model. It'll be something like:
`model PageText {...Client Side Routing to specific route causes 'too many rerenders', but a page reload works fine
Going straight to link and getting brand new page from server works fine
using next
Link component to route client side causes Error: Too many re-renders.
only 1 specific page, all others work and this page is nearly identical to others in terms of functionality...Confused on Prisma's where clause: OR and AND
I'm trying to write a query that queries the repositories that aren't
hidden for everyone, but for the logged user, it also queries the hidden ones. I think the SQL for that would be something like:
SELECT * FROM Repository r
WHERE r.hidden = false
OR (r.hidden = true AND r.userId = ctx.session.user.id)
...tRPC, Is it just for front end?
I just spent a few hours trying to use tRPC endpoint inside a NextAuth callback function, only to finally give up and use prisma directly.
Now that I reflect on it, tRPC IS part of the server right? Did I just try to call an endpoint from my own server? š¤¦āāļøš¤¦āāļøš¤¦āāļø
I hope Iām wrong. be gentle š¤£...
What's the T3-approved framework for testing apis?
Im also using trpc-openapi to generate reset endpoints for external users of my app. so it would be nice if I could test those as well.
OAuth OTP callback?
Curious what the approach would be to redirect user to enter a 2FA code before fully signing in after signing in through Google for exmaple
Reasons not to mutate React state
Hey everyone, this topic came up when I was chatting with a coworker who was less familiar with React, and I was hoping someone could shed some light on what is probably a very basic question.
If I have some piece of state, say for example
const [person, setPerson] = useState({ name: 'Ed', age: 99 });, obviously if I were to mutate the object directly, it would not trigger any update and we'd be left with stale state.
However, if an update WERE to occur in lockstep with this mutation, would that have negative implications beyond simply not being a best practice? For example......Help, how do I do this?
Each user has multiple workspaces. However, a user can only be using one workspace at a time (active workspaceId)

User authentication in Astro?
What ways are there to do user authentication within Astro, similar to NextAuth? I have found a package (Astro-Auth) that seems similar, but also seems like it hasn't been worked on for a while and the docs appear to be a little scattered. The goal was to do something similar to Auth.js's Email provider with the magic email links to sign people in. Does any information exist on doing something like that in Astro?
get rid of Symbol iterator in autocomplete
Hi TS nerds, I'm in dire need of help;
For a bit of context, I have a function that returns a tuple:
const [hej, do] = myFunc(), and I'm looking to allow an object being returned by the same function: const obj = myFunc() // obj.hej and obj.do exist. for WAY more accurate code, see: https://github.com/bdsqqq/try/pull/10
My solution of choice rn would be: ...JavaScript alternative to CanCanCan
Does anyone have any recommendations for a JS library that manages authorization and permission to resources? We use CanCanCan in our Rails app and are looking for a JS alternative in a new app that manages 4 different types of users/subscriptions.
How do I type T3 App with nestable layouts for each route?
I am new to Create T3 App and I want to be able to have 1 T3 app that handles both a public users and (admin users through /admin route only). The public user site should have its own seperate navbar/layout compared to the /admin site. I would rather use the app directory for nested layouts in Next13 however, it is still in beta or experimental and I don't want it to break next auth and anything else, since others seem to be having problems with. it.
I have had a look at this article: https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/ and it seems to be able to do everything I need. ...
I have had a look at this article: https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/ and it seems to be able to do everything I need. ...

nextjs API routes become unresponsive in dev mode
I am encountering a problem where the API routes become completely unresponsive in dev mode.
To demonstrate this, I have created this minimal example.
https://github.com/amit13k/create-t3-app-example2
...
Nextjs with CSS in JS
I am using ant design (https://ant.design) on a Nextjs project (pages folder). The component styles don't seem to be SSRd, there is a flash of unstyled content when the page is first loaded.
Ant design docs have some instructions on how to do SSR - https://ant.design/docs/react/customize-theme#server-side-render-ssr
But I can't figure out how these apply to Nextjs....
[next-auth] Updating user model with new values after oauth signin
Maybe someone can give some pointers on this
Let's say we have this flow
1. User tries to access an protected route
2. Is redirected to /login with an callbackUrl for the protected route and isSubmitting url query...
docker lags my pc
Heyy I've wanted to try Docker since it's something many people mention, but after installing Docker Desktop when I launch it, it makes my PC lag really bad. I'm on windows 10 and have 8gb RAM, it's not much but I didn't expect it to make it unusable. Anyone know something about this?
Dynamic subdomains
Hi, I would like to setup custom subdomain to act like a slug, something like:
[slug].mysite.com.
I thought of using nginx that reverse proxy that will swap the subdomain to the slug in the background.
So something like this: subdomain.mysite.com/hello -> mysite.com/subdomain/hello....VR dev setup
Anyone here write code in VR? This blog got me really interested on trying it out: https://medium.com/immersedteam/working-from-orbit-39bf95a6d385