Configure domains for different environments without autodeploying to Vercel
Hello!
I havent connected my github repo to vercel, instead I do "custom" deploys via github actions to Vercel.
My problem is that I have two domains in vercel...
how Programming languages are creates ?
Hi. Guys I have a question please , so i study computer science at university , we have built a simple language called NewJava , its syntax is similar to Java, we built the interpreter with c++ , we have done everything lexical thing , grammar , we create token , parse it to create The abstract syntax tree , then for example when we see variable declaration in NewJava such as : ‘’ dec number = 10’’ we store the variable with its value in a hashMap using c++ to keep track with the value, and same...
Has anyone had any luck migrating prisma -> drizzle?
Migrating from Prisma to Drizzle is a massive project. There are no migration guides. Is there a great way to migrate query-by-query? Has anybody done this and had any luck? Piecemeal migrations seem like the only practical way to do this
How to type return of hook based on string passed as argument?
I wanna have different types based on string passed as the argument of a custom hook, but i don't know how to infer types of zod schema dynamically based on a received string. I reckon typescript helpers function might help but i don't know any.
```tsx
const validations = {
"GET_FRUITS": {...
How to connect Next13 and Sitecore CMS?
My team and I are going to start new project using Sitecore CMS and seems like there is no enough examples of how to connect with Next13. I've seen things with Next 12. Do you have any suggestions? have you tried? Anything to consider?
Next JS 13 (noob) questions
Thank you, if you actually read threw all this. Would make my day!
So I have some question / want to make sure I got everything correct before I start implementing.
1. Fetching data from a db...
server-side environment variable in jest
I'm testing a function that's it used in getStaticPaths with jest
And @t3-oss/env-nextjs tell me that I can't because I'm not in a server-side
What do you recommend ?...
SSR with tRPC in NextJs
I'm really struggling to resolve my queries on the server side before the data is displayed in the client side, tRPC indeed does work with ssr but I couldn't find an example of how to out that to work kn a real app with nextjs, so I wanna fetch the data in the getServerSideProps, but the query would be still loading in the time, so how to do that!
SyntaxError for UploadThing
using any UploadThing component breaks my code, because of this error
I dont seem to know where I'm messing up, ```...
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
Clerk Authorization vs Authentification
Hey! I'm developing a web app in Nextjs, and using Clerk for user management and authentification. The only problem is that I cant seem to find a way to give different users roles and privileges. I am going to have a customer page, but also an admin page, so these user groups need to have access to different resources.
I have looked through the Clerk documentation, but I cannot find anything on it. The only thing I could spot was the ability to add custom user metadata. Is that a good way of assigning roles and privileges? Or is there better way?...
GenerateStaticParams + DynamicParams=false not Working in Next13
I am using
generateStaticParams
:
```
export async function generateStaticParams() {
let blogPosts = await prisma.posts.findMany({...React guarantee updated state variable
I'm setting a state using the setter. In the next line I have a function which relies on the "updated" value of that state. How can I guarantee that value is the updated one and not stale? Since react does some "magic" pooling for state updates / doesn't execute state updates synchronously?
```jsx
const [myState, setMyState] = useState(false)
...
prisma nested writes / updates not working
My prisma schema currently looks like this:
```
generator client {
provider = "prisma-client-js"
}...
Type declaration for js files
I have a boiled down hobby project that I would like to avoid having to add a compile step to (it's all server-side node.js). My thought was to use a tsconfig.json to allow my IDE to report the type errors for me and to establish the types themselves in separate *.d.ts files.
My tsconfig.json looks like this :
{...
next/font fonts won't load
Just setup a t3 project but the fonts don't seem to be loading.
app.tsx:
```tsx
import { type Session } from "next-auth";...
Solution:
fontFamily import was supposed to be a named import
Customizing the t3 stack
so i have some boilerplate code so like some components, i18n and stuff setup which i want to use with the t3 stack, setting up everything and making a github template repo works but it quickly gets outdated
what's the best way to approach this? because i have no idea where to get started
basically i want to generate the t3 stack and have all the components and i18n setup...
Solution:
but for the time being the best options you have are either copy paste stuff into a generated project, or fork the CLI
Do server actions run on edge?
Thinking about using them in a project but am trying to strictly use edge. Anyone know if they run at edge?
T3 Chirp -> understanding Nextjs Routing / Slug
Ive been doing a slight spin of the Chirp project adding some of my own changes, one is you can use clerk with Email too. The problem is Email clerk doesnt have user name, so I want I used firsName for the route name param but also want to move the userId in with route to grab all the user data by Id inside the slug file. I see the ProfilePage getting exported but dont understand how the slug knows to use that page. How do I send state(userId) along with the params that show up on the URL 




