3eif
3eif
Explore posts from servers
TTCTheo's Typesafe Cult
Created by 3eif on 1/11/2024 in #questions
How to protect pages using Next Auth
I am really confused right now. I'm being told it's not recommended to use JWT for OAuth but I need to use JWTs to have middleware that protects routes from being exposed to unauthenticated users. So what am I supposed to do?
16 replies
TTCTheo's Typesafe Cult
Created by 3eif on 12/29/2023 in #questions
Error when using uploadthig uploadFilesFromUrl
I'm getting this error when uploading an image url to uploadthing
Failed to set fetch cache URL {
href: 'https://oaidalleapiprodscus.blob.core.windows.net/tje rest of the url...',
origin: 'https://oaidalleapiprodscus.blob.core.windows.net',
protocol: 'https:',
username: '',
password: '',
host: 'oaidalleapiprodscus.blob.core.windows.net',
hostname: 'oaidalleapiprodscus.blob.core.windows.net',
port: '',
pathname: '...',
search: '...',
searchParams: URLSearchParams {
'st' => '2023-12-29T05:54:21Z',
'se' => '2023-12-29T07:54:21Z',
'sp' => 'r',
'sv' => '2021-08-06',
'sr' => 'b',
'rscd' => 'inline',
'rsct' => 'image/png',
'skoid' => '6aaadede-4fb3-4698-a8f6-684d7786b067',
'sktid' => 'a48cca56-e6da-484e-a814-9c849652bcb3',
'skt' => '2023-12-28T19:40:17Z',
'ske' => '2023-12-29T19:40:17Z',
'sks' => 'b',
'skv' => '2021-08-06',
'sig' => 'KPdiC62CmhmwSuk7I7McHsMknbd+iqZU2q76J3oecfI=' },
hash: ''
} Error: fetch for over 2MB of data can not be cached
at IncrementalCache.set (/home/seif/lego-ai/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/incremental-cache/index.js:381:23)
at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/patch-fetch.js:397:74)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Failed to set fetch cache URL {
href: 'https://oaidalleapiprodscus.blob.core.windows.net/tje rest of the url...',
origin: 'https://oaidalleapiprodscus.blob.core.windows.net',
protocol: 'https:',
username: '',
password: '',
host: 'oaidalleapiprodscus.blob.core.windows.net',
hostname: 'oaidalleapiprodscus.blob.core.windows.net',
port: '',
pathname: '...',
search: '...',
searchParams: URLSearchParams {
'st' => '2023-12-29T05:54:21Z',
'se' => '2023-12-29T07:54:21Z',
'sp' => 'r',
'sv' => '2021-08-06',
'sr' => 'b',
'rscd' => 'inline',
'rsct' => 'image/png',
'skoid' => '6aaadede-4fb3-4698-a8f6-684d7786b067',
'sktid' => 'a48cca56-e6da-484e-a814-9c849652bcb3',
'skt' => '2023-12-28T19:40:17Z',
'ske' => '2023-12-29T19:40:17Z',
'sks' => 'b',
'skv' => '2021-08-06',
'sig' => 'KPdiC62CmhmwSuk7I7McHsMknbd+iqZU2q76J3oecfI=' },
hash: ''
} Error: fetch for over 2MB of data can not be cached
at IncrementalCache.set (/home/seif/lego-ai/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/incremental-cache/index.js:381:23)
at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/patch-fetch.js:397:74)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3 replies
TTCTheo's Typesafe Cult
Created by 3eif on 12/20/2023 in #questions
What are the files in the /trpc folder used for in T3 App Router?
No description
14 replies
TTCTheo's Typesafe Cult
Created by 3eif on 10/3/2023 in #questions
Upload file to UploadThing via url
I have an attachment URL from AirTable that I'd like to upload directly to UploadThing. Is something like this possible?
4 replies