Whats better for Nextjs image src - import or path?
Is there a difference between, if so which one is better?
import logo from "../logo.svg"
<Image src={logo} />
and
<Image src="/logo.svg"/>...
auth0 handleCallback vs handleLogin[returnTo]
Hi, I started playing with next.js + auth0. I am trying to redirect the user to a given address after login, but handleCallback (api/auth/callback) doesn't work. If I add returnTo to handleLogin (pic2), it redirects correctly. What is the callback for in this case? (docs does not help)

Notifications and live updates - are websockets the best way to do it?
I am adding notifications and live updates to my react app. I currently use react query for server state management on the frontend and mongo + mongo app services (realm) for the backend. Have setup an api that the client can subscribe to and thinking of following what TkDodo has mentioned in his blog post https://tkdodo.eu/blog/using-web-sockets-with-react-query. Is this the best way to do it or would you recommend something else?
How to throw a tRPC error if prisma query returns null
I tried the code in the photo but trpc query still returns null instead of raising an error.

How to mock useRef using playwright component testing ?
hello I'm writing test for a component with ref. I'd like to mock the ref element and change some properties but have no idea how to. Any suggestions?
import { test, expect } from "@playwright/experimental-ct-react";
import { useState } from "react";
import { useRef } from "react";
import Main from "./index";...
How to have global state?
I want to set and read a state (the state will be an array of strings that is fetched when the user makes a search) from anywhere within the website(different routes). The information is temporary and can be deleted after the users session ended. reading the state needs to be really fast.
I am kinda new to all of this. Is this a case for zustand?...
Spotify API calls using TRPC
Hi, I would like to make use the spotify API in my t3 app. The following repo shows how I would retrieve my token. https://github.com/spotify/web-api-auth-examples/blob/master/client_credentials/app.js
Where would this be done in the stack? If there are docs highlighting this could you please point me to it?
Thanks...
Can I use PostgreSQL as a timeseries database
Hi, I am doing a project to possibly use as my final major project at UNI...I know there are database hosting sites out there specifically for this but I am a tinkerer and was wondering if it a good idea to use PostgreSQL to store time series data. I am away that for a small scale project it doesn't matter but If I were to offer this as a full service would it end up biting me in the ass in the future.
What to use to manage state in T3 stack app
I want to implement a cart function for my app and was wondering what state management library to use with my app.
It is made with create-t3-app...
Mocked unit tests or Integration tests
When running tests in the frontend that involves a server side call, do you prefer to mock the server side call to do the unit tests or do you skip that and proceed with writing Integration/E2E tests?
useEffect deps for run on mount
given an effect you want to run on mount like:
```
const publish = () => {…}
useEffect(() => {...
how to get vite-plugin-relay to work
hello. I'm trying to use this plugin as a last-mile build solution for the relay parts that need to be babel transformed, using clojurescript that was compiled using shadow-cljs into esm. I've been able to use this plugin with much success in the past but am finding it difficult for this one use case and was wondering what it is I'm overlooking since I'm getting this error when loading the site with vite `browser.js:1 Uncaught Invariant Violation: graphql: Unexpected invocation at runtime. Eithe...
How to add custom fonts in T3 app
is there a definitive way of doing this I've tried many ways but none of them work.
I want to use poppins font from google fonts...
How to increase 1mb upload limit
Currently I have to call a mutation with trpc which passes an array with 1000+ elements using the t3 stack. Is there a way to increase the upload limit? Thanks!

RTK Query (with no redux) or React Query?
I'm a noob, obviously, but a bunch of my friend called me out for making api requests in useEffect and they recommended me to use RTK query instead. The problem is that I'm not planing on using redux in my project, since its way too small for that.
So... should I go with RTK query (with no redux) or with React Query instead?
Just please elaborate a bit because I want to understand why, not just blindly follow. Huge thanks <33...
Seperate or external back-end
Is it good having a seperate back-end using e.g. Django and communicating with api, or is it best practice for Next to use something like Prisma?
export default or...
Okay so this is pretty subtle but confusing. I've once Heard that for example
is considered bad practice. Why? If so how should I name my components to not bother about it ever again?...
export default function Home()
export default function Home()
tRPC queries&mutations really slow on Vercel+Planetscale deployment
Hello!
I deployed my T3 app to vercel and the DB to Planetscale, and I am seeing some incredibly slow speeds on the queries/mutations for tRPC. Take this mutation for following a user for example:
```ts
follow: authedProcedure
.input(...
