Liltripple_reid
Liltripple_reid
Explore posts from servers
TTCTheo's Typesafe Cult
Created by om3r on 4/17/2024 in #questions
how to pass trpc typescript between parent and children ?
you can use the RouterOutputs of the path you're querying
7 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 3/10/2024 in #questions
cookies are returned as `object Promise` from RSC
logging the cookie itself shows this
{
workspace: Promise {
'arq-studios',
[Symbol(async_id_symbol)]: 147121,
[Symbol(trigger_async_id_symbol)]: 137107,
[Symbol(kResourceStore)]: undefined,
[Symbol(kResourceStore)]: {
headers: [Getter],
cookies: [Getter],
mutableCookies: [Getter],
draftMode: [Getter]
},
[Symbol(kResourceStore)]: {
isStaticGeneration: false,
urlPathname: '/integrations/github?code=709726aa96755578ac0d',
pagePath: '/(public)/integrations/github/page',
incrementalCache: [IncrementalCache],
isRevalidate: false,
isPrerendering: undefined,
fetchCache: undefined,
isOnDemandRevalidate: false,
isDraftMode: false,
postpone: undefined,
fetchMetrics: [Array],
forceDynamic: true,
revalidate: 0,
tags: [Array],
nextFetchId: 5
},
{
workspace: Promise {
'arq-studios',
[Symbol(async_id_symbol)]: 147121,
[Symbol(trigger_async_id_symbol)]: 137107,
[Symbol(kResourceStore)]: undefined,
[Symbol(kResourceStore)]: {
headers: [Getter],
cookies: [Getter],
mutableCookies: [Getter],
draftMode: [Getter]
},
[Symbol(kResourceStore)]: {
isStaticGeneration: false,
urlPathname: '/integrations/github?code=709726aa96755578ac0d',
pagePath: '/(public)/integrations/github/page',
incrementalCache: [IncrementalCache],
isRevalidate: false,
isPrerendering: undefined,
fetchCache: undefined,
isOnDemandRevalidate: false,
isDraftMode: false,
postpone: undefined,
fetchMetrics: [Array],
forceDynamic: true,
revalidate: 0,
tags: [Array],
nextFetchId: 5
},
2 replies
TTCTheo's Typesafe Cult
Created by chillihero on 3/8/2024 in #questions
Good (cheap) alternatives to Planescale
what about turso and it's edge databases coupled with the next middleware? (and lucia 3 or nextauth 5)
9 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 3/9/2024 in #questions
June Analytics weird error when attempting to track
solved it, turns out the user_id was not a string LOL
3 replies
TTCTheo's Typesafe Cult
Created by kgni on 1/22/2024 in #questions
create-t3-turbo issues
Sorry man
17 replies
TTCTheo's Typesafe Cult
Created by kgni on 1/22/2024 in #questions
create-t3-turbo issues
Then I’m not really sure what the actual problem could be
17 replies
TTCTheo's Typesafe Cult
Created by kgni on 1/22/2024 in #questions
create-t3-turbo issues
Oh
17 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 1/23/2024 in #questions
slower session lookup in prod than local
the layout.tsx
// Default created by T3
import "~/styles/globals.css";

import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import { AuthProvider } from "~/components/auth-provider";
import { TRPCReactProvider } from "~/trpc/react";

export const metadata = {
title: "Create T3 App",
description: "Generated by create-t3-app",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<AuthProvider>
<TRPCReactProvider>{children}</TRPCReactProvider>
</AuthProvider>
</body>
</html>
);
}
// Default created by T3
import "~/styles/globals.css";

import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import { AuthProvider } from "~/components/auth-provider";
import { TRPCReactProvider } from "~/trpc/react";

export const metadata = {
title: "Create T3 App",
description: "Generated by create-t3-app",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<AuthProvider>
<TRPCReactProvider>{children}</TRPCReactProvider>
</AuthProvider>
</body>
</html>
);
}
the AuthProvider
"use client";

import { SessionProvider } from "next-auth/react";
import { type ReactNode } from "react";

export const AuthProvider = ({ children }: { children: ReactNode }) => {
return <SessionProvider>{children}</SessionProvider>;
};
"use client";

import { SessionProvider } from "next-auth/react";
import { type ReactNode } from "react";

export const AuthProvider = ({ children }: { children: ReactNode }) => {
return <SessionProvider>{children}</SessionProvider>;
};
4 replies
TTCTheo's Typesafe Cult
Created by kgni on 1/22/2024 in #questions
create-t3-turbo issues
I used to have this problem on a project that used shadcn Zod t3 and lucide icons AFAIK I think it’s due to the nature lf the dependencies (bundle sizes) you’re using, I just created a blank project and it’s way smoother
17 replies
TTCTheo's Typesafe Cult
Created by Antiarin on 1/16/2024 in #questions
A social media message Aggregator platform
That could work as well, just like the tokens you get from GitHub (personal, server to server) btw @Antiarin I found this https://vessel.dev I think it’s aligned to what you’re working on up to certain point
13 replies
TTCTheo's Typesafe Cult
Created by Antiarin on 1/16/2024 in #questions
A social media message Aggregator platform
I think they’re maybe working around the APIs by creating a bot that can aggregate a users message? (Just thinking out loud)
13 replies
TTCTheo's Typesafe Cult
Created by Antiarin on 1/16/2024 in #questions
A social media message Aggregator platform
It does looks like a very ambitious project
13 replies
TTCTheo's Typesafe Cult
Created by Antiarin on 1/16/2024 in #questions
A social media message Aggregator platform
Well that’s a pretty good question but since their app is closed source we can’t really see how they did it
13 replies
TTCTheo's Typesafe Cult
Created by Antiarin on 1/16/2024 in #questions
A social media message Aggregator platform
hey, well AFAIK you can check this docs from Meta https://developers.facebook.com/docs/ and abt twitter (X) well it had its APIs nerfed recently, not sure if you heard
13 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 1/8/2024 in #questions
drizzle adapter failing
it's unrelated to drizzle (trpc or nextjs maybe) but it does occur
6 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 1/8/2024 in #questions
drizzle adapter failing
however you will get this error when trying to build it
Generating static pages (0/4) [ ]x [TRPCClientError]: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
at x.from (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:27917)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:1636 {
meta: undefined,
shape: undefined,
data: undefined,
[cause]: n [Error]: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
at s (/Users/a3tech/Developer/personal_projects/pathways/.next/server/chunks/362.js:1:4931)
at d (/Users/a3tech/Developer/personal_projects/pathways/.next/server/chunks/362.js:1:2674)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:4513
at /Users/a3tech/Developer/personal_projects/pathways/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:179176
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5393
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:26763)
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5167)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5295
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:26763)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:881 {
digest: 'DYNAMIC_SERVER_USAGE'
}
}
Generating static pages (0/4) [ ]x [TRPCClientError]: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
at x.from (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:27917)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:1636 {
meta: undefined,
shape: undefined,
data: undefined,
[cause]: n [Error]: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
at s (/Users/a3tech/Developer/personal_projects/pathways/.next/server/chunks/362.js:1:4931)
at d (/Users/a3tech/Developer/personal_projects/pathways/.next/server/chunks/362.js:1:2674)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:4513
at /Users/a3tech/Developer/personal_projects/pathways/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:179176
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5393
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:26763)
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5167)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:5295
at Object.subscribe (/Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:1:26763)
at /Users/a3tech/Developer/personal_projects/pathways/.next/server/app/page.js:5:881 {
digest: 'DYNAMIC_SERVER_USAGE'
}
}
6 replies
TTCTheo's Typesafe Cult
Created by Liltripple_reid on 1/8/2024 in #questions
drizzle adapter failing
I created another t3 project and it seems fixed now
6 replies
TTCTheo's Typesafe Cult
Created by Steve Melons on 11/30/2023 in #questions
Extend next-auth session with drizzle adapter
looks like so
75 replies
TTCTheo's Typesafe Cult
Created by Steve Melons on 11/30/2023 in #questions
Extend next-auth session with drizzle adapter
75 replies
TTCTheo's Typesafe Cult
Created by Steve Melons on 11/30/2023 in #questions
Extend next-auth session with drizzle adapter
found this related
75 replies