Jeremy
Jeremy
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jeremy on 10/24/2024 in #questions
Everywhere ctx.session.user in a router is used I get this error
No description
7 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 8/7/2024 in #questions
Session not complete on expo but it is on NextJS
No description
5 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/26/2024 in #questions
Turbo and prisma dont work together?
its weird that prisma does give errors such as cannot convert null to object on some stuff like creating a post or filtering by post cateogry while when i remove the --turbo flag from the dev command it doesnt. then i found
webpack: (config, { isServer, dev }) => {
if (isServer && !dev) {
config.plugins = [...config.plugins, new PrismaPlugin()];
}
webpack: (config, { isServer, dev }) => {
if (isServer && !dev) {
config.plugins = [...config.plugins, new PrismaPlugin()];
}
maybe its because of this, is there a way to do this for turbo as well changing the prop webpack to turbo doesnt do it for me.
2 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
Is there a way to turn of this prisma spam?
atabase:db:generate:
database:db:generate: Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
database:db:generate:
database:db:generate: import { PrismaClient } from '@prisma/client'
database:db:generate: const prisma = new PrismaClient()
database:db:generate:
database:db:generate: or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
database:db:generate:
database:db:generate: import { PrismaClient } from '@prisma/client/edge'
database:db:generate: const prisma = new PrismaClient()
database:db:generate:
database:db:generate:
database:db:generate: See other ways of importing Prisma Client: http://pris.ly/d/importing-client
database:db:generate:
database:db:generate: ┌─────────────────────────────────────────────────────────────┐
database:db:generate: │ Deploying your app to serverless or edge functions?
database:db:generate: │ Try Prisma Accelerate for connection pooling and caching. │
database:db:generate: │ https://pris.ly/cli/--accelerate │
database:db:generate: └─────────────────────────────────────────────────────────────┘
database:db:generate:
atabase:db:generate:
database:db:generate: Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
database:db:generate:
database:db:generate: import { PrismaClient } from '@prisma/client'
database:db:generate: const prisma = new PrismaClient()
database:db:generate:
database:db:generate: or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
database:db:generate:
database:db:generate: import { PrismaClient } from '@prisma/client/edge'
database:db:generate: const prisma = new PrismaClient()
database:db:generate:
database:db:generate:
database:db:generate: See other ways of importing Prisma Client: http://pris.ly/d/importing-client
database:db:generate:
database:db:generate: ┌─────────────────────────────────────────────────────────────┐
database:db:generate: │ Deploying your app to serverless or edge functions?
database:db:generate: │ Try Prisma Accelerate for connection pooling and caching. │
database:db:generate: │ https://pris.ly/cli/--accelerate │
database:db:generate: └─────────────────────────────────────────────────────────────┘
database:db:generate:
6 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
No env variables found with turbo v2.0.4 with t3-app
Everytime it builds it gives these errors:
web:build: $ next build
web:build: :x: Invalid environment variables: {
web:build: NEXTAUTH_SECRET: [ 'Required' ],
web:build: NEXTAUTH_URL: [ 'Invalid url' ],
web:build: AWS_ACCESS_KEY_ID: [ 'Required' ],
web:build: AWS_SECRET_ACCESS_KEY: [ 'Required' ],
web:build: AWS_REGION: [ 'Required' ],
web:build: AWS_ENDPOINT: [ 'Required' ],
web:build: GOOGLE_CLIENT_ID: [ 'Required' ],
web:build: GOOGLE_CLIENT_SECRET: [ 'Required' ],
web:build: DISCORD_CLIENT_ID: [ 'Required' ],
web:build: DISCORD_CLIENT_SECRET: [ 'Required' ]
web:build: }
web:build: ⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
web:build:
web:build: $ next build
web:build: :x: Invalid environment variables: {
web:build: NEXTAUTH_SECRET: [ 'Required' ],
web:build: NEXTAUTH_URL: [ 'Invalid url' ],
web:build: AWS_ACCESS_KEY_ID: [ 'Required' ],
web:build: AWS_SECRET_ACCESS_KEY: [ 'Required' ],
web:build: AWS_REGION: [ 'Required' ],
web:build: AWS_ENDPOINT: [ 'Required' ],
web:build: GOOGLE_CLIENT_ID: [ 'Required' ],
web:build: GOOGLE_CLIENT_SECRET: [ 'Required' ],
web:build: DISCORD_CLIENT_ID: [ 'Required' ],
web:build: DISCORD_CLIENT_SECRET: [ 'Required' ]
web:build: }
web:build: ⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
web:build:
I have tried loose mode but the error remains, i know this issue is cause of turbo cause when i downgrade the package to around 1.11.3 it works again.
16 replies
RRailway
Created by Jeremy on 9/25/2022 in #✋|help
Question
Can you use custom nextjs servers?
8 replies