DevPanda
DevPanda
Explore posts from servers
TTCTheo's Typesafe Cult
Created by DevPanda on 12/12/2024 in #questions
Auth System - Cookie problem
Hey, I have another question. I'm currently trying to convert my AuthSystem from Next 14 to Next15. the cookie set works
(await cookies()).set('viewToken', data, {
httpOnly: true,
maxAge: 24 * 60 * 60,
sameSite: “strict”
});
(await cookies()).set('viewToken', data, {
httpOnly: true,
maxAge: 24 * 60 * 60,
sameSite: “strict”
});
but the cookie get does not work with uploadthing in the middleware or in the trpc context
18 replies
TtRPC
Created by DevPanda on 12/4/2024 in #❓-help
use cases
Hey, I only recently got to know trpc in connection with create-t3-app. Now I have the question, can I use it everywhere or is it only possible in connection with web frameworks? Would be very nice if you could enlighten me a bit 🙂
24 replies
PPrisma
Created by DevPanda on 12/4/2024 in #help-and-questions
Question About Prisma Pricing
Hey, if I understand correctly on your website. If I get a subscription and then use Prisma Postgres, I have no query limitation with Accelerate and Pulse?
7 replies
TTCTheo's Typesafe Cult
Created by DevPanda on 11/26/2024 in #questions
ct3a build error
Hey, i got this error i have tryed everything what i find on google and i have reinstall my PC but no solution. It must anything in my Project.
glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\info\Anwendungsdaten'] {
errno: -4048,
code: 'EPERM',
syscall: 'scandir',
path: 'C:\\Users\\info\\Anwendungsdaten'
}
glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\info\Anwendungsdaten'] {
errno: -4048,
code: 'EPERM',
syscall: 'scandir',
path: 'C:\\Users\\info\\Anwendungsdaten'
}
{
"dependencies": {
"@auth/prisma-adapter": "^2.7.4",
"@mantine/charts": "^7.14.2",
"@mantine/core": "^7.14.2",
"@mantine/dates": "^7.14.2",
"@mantine/form": "^7.14.2",
"@mantine/hooks": "^7.14.2",
"@mantine/modals": "^7.14.2",
"@mantine/notifications": "^7.14.2",
"@mantine/nprogress": "^7.14.2",
"@prisma/client": "^5.22.0",
"@prisma/extension-accelerate": "^1.2.1",
"@t3-oss/env-nextjs": "^0.11.1",
"@tabler/icons-react": "^3.22.0",
"@tanstack/react-query": "^5.61.3",
"@trpc/client": "^11.0.0-rc.446",
"@trpc/react-query": "^11.0.0-rc.446",
"@trpc/server": "^11.0.0-rc.446",
"@uploadthing/react": "^7.1.1",
"axios": "^1.7.8",
"dayjs": "^1.11.13",
"geist": "^1.3.1",
"next": "^15.0.4-canary.28",
"next-auth": "5.0.0-beta.25",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"recharts": "2",
"server-only": "^0.0.1",
"superjson": "^2.2.1",
"uploadthing": "^7.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^9.6.1",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"eslint": "^8.57.1",
"eslint-config-next": "^15.0.3",
"postcss": "^8.4.49",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"prisma": "^5.22.0",
"typescript": "^5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.38.1"
},
"packageManager": "[email protected]"
}
{
"dependencies": {
"@auth/prisma-adapter": "^2.7.4",
"@mantine/charts": "^7.14.2",
"@mantine/core": "^7.14.2",
"@mantine/dates": "^7.14.2",
"@mantine/form": "^7.14.2",
"@mantine/hooks": "^7.14.2",
"@mantine/modals": "^7.14.2",
"@mantine/notifications": "^7.14.2",
"@mantine/nprogress": "^7.14.2",
"@prisma/client": "^5.22.0",
"@prisma/extension-accelerate": "^1.2.1",
"@t3-oss/env-nextjs": "^0.11.1",
"@tabler/icons-react": "^3.22.0",
"@tanstack/react-query": "^5.61.3",
"@trpc/client": "^11.0.0-rc.446",
"@trpc/react-query": "^11.0.0-rc.446",
"@trpc/server": "^11.0.0-rc.446",
"@uploadthing/react": "^7.1.1",
"axios": "^1.7.8",
"dayjs": "^1.11.13",
"geist": "^1.3.1",
"next": "^15.0.4-canary.28",
"next-auth": "5.0.0-beta.25",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"recharts": "2",
"server-only": "^0.0.1",
"superjson": "^2.2.1",
"uploadthing": "^7.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^9.6.1",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"eslint": "^8.57.1",
"eslint-config-next": "^15.0.3",
"postcss": "^8.4.49",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"prisma": "^5.22.0",
"typescript": "^5.7.2"
},
"ct3aMetadata": {
"initVersion": "7.38.1"
},
"packageManager": "[email protected]"
}
2 replies
TTCTheo's Typesafe Cult
Created by DevPanda on 11/14/2024 in #questions
Next lint fail prisma edge
Hey, i got this error when i try to build my t3-app with prisma edge i have try to set the lint dir only to src but it doesn´t help. Have anyone a idea? Sorry for my bad english.
./prisma/client/edge.js:31:1
Type error: Type 'typeof Prisma' is missing the following properties from type 'typeof Prisma': TransactionIsolationLevel, GameTypeScalarFieldEnum, GroupScalarFieldEnum, ServerScalarFieldEnum, and 10 more.

29 | const Prisma = {}
30 |
> 31 | exports.Prisma = Prisma
| ^
32 | exports.$Enums = {}
33 |
34 | /**
 ELIFECYCLE  Command failed with exit code 1.
./prisma/client/edge.js:31:1
Type error: Type 'typeof Prisma' is missing the following properties from type 'typeof Prisma': TransactionIsolationLevel, GameTypeScalarFieldEnum, GroupScalarFieldEnum, ServerScalarFieldEnum, and 10 more.

29 | const Prisma = {}
30 |
> 31 | exports.Prisma = Prisma
| ^
32 | exports.$Enums = {}
33 |
34 | /**
 ELIFECYCLE  Command failed with exit code 1.
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";

/** @type {import("next").NextConfig} */
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "utfs.io",
pathname: "/f/*",
},
],
},
experimental: {
optimizePackageImports: [
'@mantine/core',
'@mantine/hooks'
]
},
eslint: {
dirs: ["src"],
},
};

export default config;
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";

/** @type {import("next").NextConfig} */
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "utfs.io",
pathname: "/f/*",
},
],
},
experimental: {
optimizePackageImports: [
'@mantine/core',
'@mantine/hooks'
]
},
eslint: {
dirs: ["src"],
},
};

export default config;
2 replies
PPrisma
Created by DevPanda on 10/5/2024 in #help-and-questions
MongoDB DataType Code
Is it possible to use the "Code" data type with Prisma in MongoDB? If so, how?
2 replies
PPrisma
Created by DevPanda on 9/25/2024 in #help-and-questions
Prisma Accelerate Typescript
Hey, what are the typings for Prisma Accelerate? why is prismaClientSingleton = any? this make no sense
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";

function prismaClientSingleton() {
return new PrismaClient().$extends(withAccelerate());
}

declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;

const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();

export default prisma;

if (process.env.NODE_ENV !== "production") globalThis.prismaGlobal = prisma;
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";

function prismaClientSingleton() {
return new PrismaClient().$extends(withAccelerate());
}

declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;

const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();

export default prisma;

if (process.env.NODE_ENV !== "production") globalThis.prismaGlobal = prisma;
2 replies
PPrisma
Created by DevPanda on 9/24/2024 in #help-and-questions
why he say that is missing? Its come from a relation
No description
4 replies
PPrisma
Created by DevPanda on 7/21/2024 in #help-and-questions
At what point is a query used up from the 60k
Is one consumed to get it into the cache or is one consumed per retrieval in the code
7 replies
DIdiscord.js - Imagine ❄
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
9 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
Hey, does prisma also have a localcaching or something? except the prisma accelerate. i would like to have something local because the internet is getting worse and worse in germany 😦 Does anyone know anything current? e.g. an NPM package?
11 replies
PPrisma
Created by DevPanda on 4/8/2024 in #help-and-questions
why that not work?
No description
3 replies