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
If that doesnt do the job then somewhere in server.ts modify the create context like so:
import { headers } from "next/headers"; // probably already imported

const createContext = cache(async () => {
const heads = new Headers(await headers());
import { headers } from "next/headers"; // probably already imported

const createContext = cache(async () => {
const heads = new Headers(await headers());
7 replies
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
So first of all update your next auth to the latest version
7 replies
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
this was a next-auth issue.
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
I know this, i think the signOut is not the issue. Possibly the callbacks? But that wouldn’t explain why the other stuff is visible. Maybe it’s just discord oAuth and i should try google instead. I’m not sure. If anyone has a suspicion please let me know
5 replies
TTCTheo's Typesafe Cult
Created by adonis03 on 8/8/2024 in #questions
Session Callback Not Triggering in NextAuth Integration with tRPC
#Session not complete on expo but it is on NextJS
5 replies
TTCTheo's Typesafe Cult
Created by adonis03 on 8/8/2024 in #questions
Session Callback Not Triggering in NextAuth Integration with tRPC
Im having that same issue with discord sign in
5 replies
TTCTheo's Typesafe Cult
Created by adonis03 on 8/8/2024 in #questions
Session Callback Not Triggering in NextAuth Integration with tRPC
Oh yeah i see
5 replies
TTCTheo's Typesafe Cult
Created by adonis03 on 8/8/2024 in #questions
Session Callback Not Triggering in NextAuth Integration with tRPC
T3-turbo?
5 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 8/7/2024 in #questions
Session not complete on expo but it is on NextJS
If anyone knows it would mean the world to me
5 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
Is there a way to turn of this prisma spam?
--no-hint
6 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
Is there a way to turn of this prisma spam?
This would really be a reason to move to drizzle for me if there is no solution
6 replies
TTCTheo's Typesafe Cult
Created by Jeremy on 6/20/2024 in #questions
Is there a way to turn of this prisma spam?
bun prisma db:generate --silent does not work for me on "@prisma/client": "^5.4.1",
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
thank you very much!
16 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
adding it to the start script as well fixed it
16 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
my error remains
16 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
database:db:generate: └─────────────────────────────────────────────────────────────┘
database:db:generate:
web:start: cache miss, executing 05043452f568280d
web:start: $ next start
web:start: ▲ Next.js 14.2.4
web:start: - Local: http://localhost:3000
web:start:
web:start: ✓ Starting...
web:start: ❌ Invalid environment variables: {
web:start: NEXTAUTH_SECRET: [ 'Required' ],
web:start: NEXTAUTH_URL: [ 'Required' ],
web:start: AWS_ACCESS_KEY_ID: [ 'Required' ],
web:start: AWS_SECRET_ACCESS_KEY: [ 'Required' ],
web:start: AWS_REGION: [ 'Required' ],
web:start: AWS_ENDPOINT: [ 'Required' ],
web:start: GOOGLE_CLIENT_ID: [ 'Required' ],
web:start: GOOGLE_CLIENT_SECRET: [ 'Required' ],
web:start: DISCORD_CLIENT_ID: [ 'Required' ],
web:start: DISCORD_CLIENT_SECRET: [ 'Required' ]
web:start: }
web:start: ⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
web:start: Error: Invalid environment variables
web:start: at onValidationError (file:///app/node_modules/@t3-oss/env-core/dist/index.js:29:15)
web:start: at createEnv (file:///app/node_modules/@t3-oss/env-core/dist/index.js:35:16)
web:start: at createEnv (file:///app/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)
web:start: at file:///app/apps/web/src/env.js:4:20
web:start: at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
web:start: at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
web:start: at async file:///app/apps/web/next.config.js:11:1
web:start: error: script "start" exited with code 1
web:start: ERROR: command finished with error: command (/app/apps/web) /root/.nix-profile/bin/bun run start exited (1)
web#start: command (/app/apps/web) /root/.nix-profile/bin/bun run start exited (1)

Tasks: 1 successful, 2 total
Cached: 0 cached, 2 total
Time: 3.474s
Failed: web#start
database:db:generate: └─────────────────────────────────────────────────────────────┘
database:db:generate:
web:start: cache miss, executing 05043452f568280d
web:start: $ next start
web:start: ▲ Next.js 14.2.4
web:start: - Local: http://localhost:3000
web:start:
web:start: ✓ Starting...
web:start: ❌ Invalid environment variables: {
web:start: NEXTAUTH_SECRET: [ 'Required' ],
web:start: NEXTAUTH_URL: [ 'Required' ],
web:start: AWS_ACCESS_KEY_ID: [ 'Required' ],
web:start: AWS_SECRET_ACCESS_KEY: [ 'Required' ],
web:start: AWS_REGION: [ 'Required' ],
web:start: AWS_ENDPOINT: [ 'Required' ],
web:start: GOOGLE_CLIENT_ID: [ 'Required' ],
web:start: GOOGLE_CLIENT_SECRET: [ 'Required' ],
web:start: DISCORD_CLIENT_ID: [ 'Required' ],
web:start: DISCORD_CLIENT_SECRET: [ 'Required' ]
web:start: }
web:start: ⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
web:start: Error: Invalid environment variables
web:start: at onValidationError (file:///app/node_modules/@t3-oss/env-core/dist/index.js:29:15)
web:start: at createEnv (file:///app/node_modules/@t3-oss/env-core/dist/index.js:35:16)
web:start: at createEnv (file:///app/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)
web:start: at file:///app/apps/web/src/env.js:4:20
web:start: at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
web:start: at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
web:start: at async file:///app/apps/web/next.config.js:11:1
web:start: error: script "start" exited with code 1
web:start: ERROR: command finished with error: command (/app/apps/web) /root/.nix-profile/bin/bun run start exited (1)
web#start: command (/app/apps/web) /root/.nix-profile/bin/bun run start exited (1)

Tasks: 1 successful, 2 total
Cached: 0 cached, 2 total
Time: 3.474s
Failed: web#start
16 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
with the new version
16 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
ill push to prod rq, is there any things in here i do not need
16 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
this is my new turbo.json
16 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
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local"
],
"tasks": {
"db:push": {
"cache": false
},
"lint": {},
"dev": {
"cache": false,
"persistent": true,
"dependsOn": [
"^db:generate"
]
},
"build": {
"env": ["*"],
"dependsOn": [
"^build",
"^db:generate"
],
"outputs": [
".next/**",
"!.next/cache/**"
]
},
"start": {
"dependsOn": [
"^start",
"^build",
"^db:generate"
]
},
"db:generate": {
"cache": false
}
}
}
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local"
],
"tasks": {
"db:push": {
"cache": false
},
"lint": {},
"dev": {
"cache": false,
"persistent": true,
"dependsOn": [
"^db:generate"
]
},
"build": {
"env": ["*"],
"dependsOn": [
"^build",
"^db:generate"
],
"outputs": [
".next/**",
"!.next/cache/**"
]
},
"start": {
"dependsOn": [
"^start",
"^build",
"^db:generate"
]
},
"db:generate": {
"cache": false
}
}
}
16 replies